Ignore Content-Length Header with NGINX configured as reverse-proxy

Rosolino Todaro rosolino.todaro at strabag.com
Thu May 20 17:36:21 UTC 2021

Hello All,

Is it possible to configure NGINX to ignore the Content-Length header when used as a reverse-proxy? Ideally for an individual location block while unaffecting the rest of the configuration.

Currently, if the client sends a POST with Content-Length of 32767 then 32767 bytes makes it to the internal application and not a byte more!
As this is for an implementation of RTSP over HTTP(S), the client cannot disconnect to resend > 32767 bytes.

The current reverse-proxy block:

location ~ ^\/(live|archive) {
    chunked_transfer_encoding off;
    proxy_buffering off;
    proxy_request_buffering off;

nginx version: nginx/1.17.9

Much obliged!

Rosolino Todaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210520/9bdc2589/attachment.htm>

More information about the nginx mailing list