Repository navigation
fix: redirect sends Pekko's HTML body and requires a redirection status - #90
Merged
Merged
Conversation
Pekko completes a redirect with a short text/html body linking to the URI (none for 304) and its Redirection type rules out other statuses; stir sent an empty body and accepted any status. The URI is HTML-escaped in the body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
…the trailing-slash redirects, a failing ctx.redirect and a 3xx without a template Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
… no body for a 3xx without a template, in the scaladoc too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
luksow
force-pushed
the
segment-non-empty
branch
from
October 18, 2026 19:28
7f22ce8 to
1405f14
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
redirectsent only the status andLocationand accepted any status. As Pekko, it now sends the shorttext/htmlbody of each redirection (none for 304 or a 3xx without a template), with the URI HTML-escaped (Pekko inserts it raw), and requires a 3xx status:redirectand the trailing-slash redirect directives throwIllegalArgumentExceptionwhen the route is built,RequestContext.redirectfails the request.Part of the 0.7.1 stack (audit 2 minor items). Stacked: merge in order #1 → #10; each PR is based on the previous one, so none of them conflicts on
docs/migration.md. Every PR: test written first and seen failing, full local verify (Scala 3 + 2.13 tests, JS/Native compile, docs, MiMa against 0.7.0), independent review with its findings fixed.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea