Multipart Errors are reported as internal server errors #2650
Labels
Comments
I’ll work on trying to fix this one. |
paunik
pushed a commit
to paunik/vapor
that referenced
this issue
Aug 22, 2021
In order to prevent 5xx internal error we try to: - validate number of parameters in FormDataDecoder so we can detect when only boundary is present.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When sending a request body that decodes a
Content
type. If the request is sent as multipart with the right header set, but the body is empty, a 500 error is returned. This can cause problems with apps that have automatic reporting for internal server errors as it should be reported as a bad requestThe text was updated successfully, but these errors were encountered: