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

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)?

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 D.
http://nginx.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs