#6 content-length header is mishandled

open
nobody
5
2005-11-16
2005-11-16
Ken Lalonde
No

RFC 2616 says HTTP headers are case-insensitive.
Mod_gzip 1.3.26.1a does not ignore case on the first
letter of the header. The effect is that, if the
response contains the (legal) header:
content-length: 123
mod_gzip will pass it through, and add its own
Content-Length header.

The attached patch simply checks for both cases when
examining the first character of the header line.

Discussion

  • Ken Lalonde

    Ken Lalonde - 2005-11-16

    Logged In: YES
    user_id=203927

    Oops, forgot the patch...

     
  • Ken Lalonde

    Ken Lalonde - 2005-11-16

    Patch to mod_gzip-1.3.26.1a/mod_gzip.c

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks