RE: [squid-users] Duplicate Content-Length headers result in error 502 bad gateway

From: Elsen Marc <[email protected]>
Date: Thu, 9 Dec 2004 08:43:50 +0100

 
> Hi all
>
> When you point your browser at the following URL you will be enjoying
> two identical Content-Length headers:
>
> http://cache.gettyimages.com/thumb/51837289.jpg?x=x&a=51837289
>&b=editorial_emea&t=1

>With snapshot squid-2.5.STABLE7-20041202 some new code was added in function
>httpHeaderParse() of file HttpHeader.c to enforce a single Content-Length
>header:
>
> } else if (e->id == HDR_CONTENT_LENGTH && httpHeaderHas(hdr, HDR_CONTENT_LENGTH)) {
> debug(55, 1) ("WARNING: found double content-length header\n");
> httpHeaderEntryDestroy(e);
> return httpHeaderReset(hdr);
>
>This restriction fires on the URL above, you get an error 502 'bad gateway'
>and squid complains about an invalid request (when in fact it was an invalid
>response - but that's another story).
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^

 Is it ? The webserver is broken. And should be fixed or else
products adhering to http standards should be used.

M.
Received on Thu Dec 09 2004 - 00:44:20 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST