Menu

#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

  • Christian Kruse

    Christian Kruse - 2003-09-05
    • assigned_to: nobody --> ckruse
     
  • Christian Kruse

    Christian Kruse - 2003-09-05

    Logged In: YES
    user_id=329823

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

     
  • Michael Schröpl

    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).

     
  • Michael Schröpl

    • priority: 5 --> 3
     

Log in to post a comment.