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

Commits on Aug 11, 2021

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

    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 committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    70386ea View commit details
    Browse the repository at this point in the history