Cannot remove Content Length header

Maxim Dounin mdounin at mdounin.ru
Sat Sep 24 12:05:31 UTC 2011


Hello!

On Sat, Sep 24, 2011 at 01:43:12PM +0200, Luc Juggery wrote:

> Hello,
> 
> I'm using Nginx as a front end to my node.js application, nginx proxying
> https request to my app.
> When the browser gets the response back, instead of pure json
> ({"error":"query error","message":"Parameter(s) missing: user,password"}), I
> receive something like:
> 
> 47
> {"error":"query error","message":"Parameter(s) missing: user,password"}
> 0

This is chunked encoding, likely sent by your backend in violation 
of HTTP specification.

Right now there are two options available:

1. Fix your backend.

2. Upgrade to nginx 1.1.4, it has code needed to talk to such 
broken backends.

Maxim Dounin



More information about the nginx mailing list