-
Notifications
You must be signed in to change notification settings - Fork 86
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
For static files, if header Content-Length is 0 no HTTP 400 should be returned #247
Comments
Here's what I see in https://tools.ietf.org/html/rfc7230#section-3.3.2:
If you think that this doesn't apply to the situation you are encountering, can you please provide an example of the exact HTTP request that is used? It's not entirely clear to me from reading the Stack Overflow answer. |
You are right, this RFC statement applies to the situation. Unfortunately I can't control this additional header injected by the Azure proxy. So it would be really beneficial to be less strict, and it would still comply to the RFC as its not a MUST to decline such requests |
OK, that sounds reasonable. |
Issue #247 fixed, Content-Length:0 is valid header for static files
Closed by #248. |
As described here: https://stackoverflow.com/a/58541479/2854141
a HTTP 400 is returned when serving static files if header
Content-Length:0
is set. This case should be considered as valid and be excluded in the check in webapplication.cppThe text was updated successfully, but these errors were encountered: