When an HTTP 1.1 client query DG, the query is converted to HTTP 1.0 and forwarded to Squid.
With Squid 3.1, an HTTP 1.0 query with an Expect header is strictly interpreted as protocol error.
This can simply be solved by adding the following to /etc/dansguardian/lists/headerregexplist :
expect:(.*)"->""
patch
This is wrong. Dansguardian ends up sending a blank line in the middle of headers, if Expect: isn't the last header line. This breaks the post request and usually causes 400 Bad Request.
Better to use the method used in HTTPHeader.cpp in case of duplicate host headers. This actually works.
Could you please provide a patch?