Cannot remove Content Length header

Luc Juggery luc.juggery at gmail.com
Sun Sep 25 16:06:19 UTC 2011


Thanks, I corrected this on back-end side (adding a content-length).
Luc

2011/9/24 Luc Juggery <luc.juggery at gmail.com>

> Does it mean something (like a parameter or something) needs to be modified
> on my node.js application ? Do I need to send additionnal stuff ? I did not
> really get the "chunked" part.
>
> --
> Luc
>
> Le Sep 24, 2011 à 16:54, Maxim Dounin <mdounin at mdounin.ru> a écrit :
>
> > Hello!
> >
> > On Sat, Sep 24, 2011 at 02:58:59PM +0200, Luc Juggery wrote:
> >
> >> Hello,
> >>
> >> thanks for your answers.
> >> Maxim, what would you recommend to fix the backend ? I do not really see
> where could be the violation in fact.
> >
> > Backend MUST NOT (as per RFC 2616) return chunked to HTTP/1.0
> > clients, while nginx uses HTTP/1.0 to talk to backends.
> >
> > See RFC 2616, "3.6 Transfer Codings"
> > http://tools.ietf.org/html/rfc2616#section-3.6
> >
> >   ... A server MUST NOT send transfer-codings to an HTTP/1.0
> >   client.
> >
> > Maxim Dounin
> >
> >>
> >> --
> >> Luc
> >>
> >> Le Sep 24, 2011 à 14:05, Maxim Dounin <mdounin at mdounin.ru> a écrit :
> >>
> >>> 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
> >>>
> >>> _______________________________________________
> >>> nginx mailing list
> >>> nginx at nginx.org
> >>> http://mailman.nginx.org/mailman/listinfo/nginx
> >>
> >> _______________________________________________
> >> nginx mailing list
> >> nginx at nginx.org
> >> http://mailman.nginx.org/mailman/listinfo/nginx
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Luc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110925/b23c7744/attachment.html>


More information about the nginx mailing list