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) {
proxy_pass http://127.0.0.1:3900;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_request_buffering off;
}

nginx version: nginx/1.17.9

Much obliged!

Rosolino Todaro
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 61
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