Duplicated Content-Length headers on pass
Mikhail Mazursky
ash2kk at gmail.com
Wed Oct 27 12:26:36 CEST 2010
2010/10/26 Tollef Fog Heen <tfheen at varnish-software.com>:
>
> Hi all,
>
> it seems like a small, but pesky bug snuck its way into 2.1.4, in which
> you might see duplicated Content-Length headers when using pass.
>
> As a workaround for this, I believe doing
>
> sub vcl_fetch {
> if (req.request != "HEAD") {
> unset beresp.http.content-length;
> }
> }
That workaround don't work for me. Piece of my VCL:
sub vcl_fetch {
#FIX for 2.1.4 Content-Length bug
if (req.request != "HEAD") {
unset beresp.http.content-length;
}
#FIX for 2.1.4 Content-Length bug
if (!beresp.cacheable) {
return (pass);
}
unset beresp.http.Set-Cookie;
return (deliver);
}
Am i doing something wrong?
p.s. when are you planing to release varnish with this bug fixed?
thanks
More information about the varnish-misc
mailing list