-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unexpected 413 - RequestEntityTooLarge response #2930
Comments
Hi! Your code has mutliple problems:
|
Yes i am aware that what i do here is never really supposed to happen. However i still feel like the error that is returned is not the correct one. |
After looking at the history of this code, and PR #2931 from @Dart-net, I've realized that this is a symptom of a different issue.
Therefore, to actually revert to the prior behavior, we should have remove the |
Bug
When sending non utf-8 bytes into a form the flask server responds with
413 - RequestEntityTooLarge
. This does not seem like the appropriate http error to return in this case. This happens when using a flask app however it might be a bug in werkzeug.Reproduce unexpected behaviour:
app.py:
home.html:
bug.py:
Environment:
The text was updated successfully, but these errors were encountered: