Menu

#4 "Expect" header should be dropped

Unstable_(example)
open
None
5
2014-10-07
2011-10-05
No

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:(.*)"->""

Discussion

  • Mathieu PARENT

    Mathieu PARENT - 2011-11-16

    patch

     
  • Anonymous

    Anonymous - 2014-10-07

    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.

     
  • Nerijus Baliūnas

    • status: closed --> open
    • Group: --> Unstable_(example)
     
  • Nerijus Baliūnas

    Could you please provide a patch?

     

Log in to post a comment.

MongoDB Logo MongoDB