-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
HttpApi server can't read chunked request #332
Comments
So how do we fix this? |
For a while I setup an nginx as a reverse proxy (on windows we usually not use it) and enable request buffering on nginx level. In such configuration nginx transform chunked HTTP request into usual request with Content-Length header. So such work-aroud can be used. Let's keep this issue open just to know what problem exists.. |
Fair enough. |
I will close it until we really need this feature. |
Current implementation of THttpApiServer always expect Content-Length header to be present - https://github.com/synopse/mORMot/blob/master/SynCrtSock.pas#L9307
In case of
Transfer-Encoding: chunked
content length not present and we got an empty request body.Command to reproduce:
The text was updated successfully, but these errors were encountered: