Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restapi: fix #1415: paths ending in / get 307-redirect instead of 301 #1445

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

hsanjuan
Copy link
Collaborator

The Gorilla muxer StrictSlash option uses a 301 permanent redirect, which
results in POST requests becoming GET requests in most clients. Thus we use
our own middleware that performs a 307 redirect. See issue #1415 for more
details.

Fixes #1415

The Gorilla muxer StrictSlash option uses a 301 permanent redirect, which
results in POST requests becoming GET requests in most clients.  Thus we use
our own middleware that performs a 307 redirect.  See issue #1415 for more
details.
@hsanjuan hsanjuan added this to the Release v0.14.1 milestone Aug 11, 2021
@hsanjuan hsanjuan merged commit 4e61722 into master Aug 12, 2021
@hsanjuan hsanjuan deleted the fix/1415-307-redirect branch August 12, 2021 15: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.

HTTP API uses redirects with 301 status, which leads to GET subsequent request in some clients
1 participant