Skip to content

fix: redirect sends Pekko's HTML body and requires a redirection status - #90

Merged
luksow merged 3 commits into
masterfrom
redirect-html
Oct 18, 2026
Merged

luksow merged 3 commits into
masterfrom
redirect-html

Conversation

@luksow

@luksow luksow commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

redirect sent only the status and Location and accepted any status. As Pekko, it now sends the short text/html body 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: redirect and the trailing-slash redirect directives throw IllegalArgumentException when the route is built, RequestContext.redirect fails 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

luksow and others added 3 commits October 18, 2026 19:20
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
luksow force-pushed the segment-non-empty branch from 7f22ce8 to 1405f14 Compare October 18, 2026 19:28
Base automatically changed from segment-non-empty to master October 18, 2026 20:01
@luksow
luksow merged commit b3df6f8 into master Oct 18, 2026
22 of 31 checks passed
@luksow
luksow deleted the redirect-html branch October 18, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant