Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 adding charset breaks mod_gzip

mod_gzip-1.3.26.1a
open
None
3
2004-10-11
2003-04-26
Anonymous
No

If I send my Content-type response as following (from a CGI script):

Content-type: text/html; charset=ISO-8859-1

then mod_gzip will not encode it with the error RESPONSE_CONTENT_TYPE_EXCLUDED, even though it is text/html and text/html is set to be encoded. It appears that it is incorrectly matching on the entire Content-type string, in violation of the HTTP specification.

Discussion

    • assigned_to: nobody --> ckruse
     
  • Logged In: YES
    user_id=329823

    Can you show me the directive with which you included the MIME type?

     
  • Logged In: YES
    user_id=211909

    "mod-gzip_item_include mime" does in fact match the whole
    content of the "content-type:" HTTP header.

    But you are free to use a value like "^text/html;" to do a
    prefix match (as opposed to "^text/html$" for an exact
    match) and thus have mod_gzip ignore the charset.

    This case is explicitly covered in the manual
    (http://www.schroepl.net/projekte/mod_gzip/config.htm#filters).

     
    • priority: 5 --> 3