8000 fix: add 308 Permanent Redirect to AbsoluteRedirectsMiddleware by kawasima · Pull Request #117 · enkan/enkan · GitHub
[go: up one dir, main page]

Skip to content

fix: add 308 Permanent Redirect to AbsoluteRedirectsMiddleware - #117

Merged
kawasima merged 1 commit into
developfrom
feature/add-308-redirect
Mar 28, 2026
Merged

kawasima merged 1 commit into
developfrom
feature/add-308-redirect

Conversation

@kawasima
Copy link
Copy Markdown
Collaborator

Summary

Add status code 308 (Permanent Redirect, RFC 7538) to AbsoluteRedirectsMiddleware.REDIRECT_STATUS so that relative Location headers in 308 responses are resolved to absolute URLs.

Closes #103

Test plan

  • permanentRedirect308 — 308 response with relative Location /new-path resolved to http://example.com/new-path
  • All 3 AbsoluteRedirectsMiddleware tests pass

🤖 Generated with Claude Code

Add status code 308 (RFC 7538) to REDIRECT_STATUS so that relative
Location headers in 308 responses are resolved to absolute URLs.

Closes #103

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kawasima
kawasima merged commit c31e7c1 into develop Mar 28, 2026
1 check failed
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

0