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

POST to /mailboxes returns a response as GET #2

Open
grzn opened this issue Feb 26, 2013 · 1 comment
Open

POST to /mailboxes returns a response as GET #2

grzn opened this issue Feb 26, 2013 · 1 comment

Comments

@grzn
Copy link

grzn commented Feb 26, 2013

as we discussed today. either make it work like POST to /mailboxes/, or return an HTTP error

@vmalloc
Copy link
Member

vmalloc commented Feb 26, 2013

OK, it seems there's no reasonable way to make Flask handle the trailing slashes differently. It always issues a redirect, and that does not play well with POSTs.

However I couldn't reproduce what you described - I get a 400 error when doing this:

>>> requests.post("http://localhost:8080/mailboxes/", data={"name" : "[email protected]"})

vmalloc added a commit that referenced this issue Jan 21, 2016
Use Ubuntu 14.04 in Vagrant
vmalloc added a commit that referenced this issue Jan 21, 2016
Set the default location type to 'hash'
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

No branches or pull requests

2 participants