Rosolino Todaro
May 20, 2021 01:38PM
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
nginx mailing list
Subject Author Posted

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

Rosolino Todaro May 20, 2021 01:38PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready