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

Unwanted redirect because of missing slash in url #52

Open
georgifarashev opened this issue Apr 23, 2018 · 0 comments
Open

Unwanted redirect because of missing slash in url #52

georgifarashev opened this issue Apr 23, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@georgifarashev
Copy link
Contributor

POST to /v1/service_brokers/ returns all service brokers. If I remove the slash '/' then it's ok.

it's some weird behavior of the router..
if I make POST /v1/service_brokers/ (note the slash) it actually routes toGET /v1/service_brokers
If i make POST /v1/service_brokers (without the slash), it behaves normally

See: http://www.gorillatoolkit.org/pkg/mux#Router.StrictSlash

@georgifarashev georgifarashev added the bug Something isn't working label Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant