Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

POST redirect when url without slash (/) at the end #67

Closed
guti576 opened this issue Jun 3, 2015 · 3 comments
Closed

POST redirect when url without slash (/) at the end #67

guti576 opened this issue Jun 3, 2015 · 3 comments

Comments

@guti576
Copy link

guti576 commented Jun 3, 2015

When I send a POST request to an url without ended in slash (f.e /user), it redirects me to the same url ended with the slash (/user/) but with a GET instead of a POST method.

Could you please give me a solution for this issue?

Thanks.

@wojcikstefan
Copy link
Member

Hi @guti576, we could technically implement an HTTP 307 redirect, but it's pretty uncommon. Why can't you simply only use URLs with a trailing slash?

@guti576
Copy link
Author

guti576 commented Jun 10, 2015

Thanks for answering @wojcikstefan . That is the solution I have adopted, but the initial idea was to work with and without slash.

@guti576
Copy link
Author

guti576 commented Jul 9, 2015

@wojcikstefan you can solve this issue just adding :

app.url_map.strict_slashes = False

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants