Setting content-length if app doesn't know what it is

Maxim Dounin mdounin at mdounin.ru
Wed Apr 29 11:57:57 UTC 2015


Hello!

On Tue, Apr 28, 2015 at 04:50:26PM -0400, CJ Ess wrote:

> Behind my web server is an application that doesn't include content-length
> headers because it doesn't know what it is. I'm pretty sure this is an
> application issue but I promised I'd come here and ask the question - is
> there a way to have nginx buffer an entire server response and insert a
> content-length header if none has been provided (i.e. by *-fpm, upstream
> proxy, etc)?

No.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list