httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_deflate.c
Date Fri, 15 Feb 2002 19:44:25 GMT
ianh        02/02/15 11:44:25

  Modified:    modules/experimental mod_deflate.c
  Log:
  I'm happy now
  gzip-only-text/html environment variable present
  
  Revision  Changes    Path
  1.4       +8 -0      httpd-2.0/modules/experimental/mod_deflate.c
  
  Index: mod_deflate.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_deflate.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- mod_deflate.c	15 Feb 2002 16:33:33 -0000	1.3
  +++ mod_deflate.c	15 Feb 2002 19:44:25 -0000	1.4
  @@ -240,6 +240,14 @@
           if (apr_table_get(r->subprocess_env, "no-gzip")) {
               return ap_pass_brigade(f->next, bb);
           }
  +        /* Some browsers might have problems with content types
  +         * other than text/html, so set gzip-only-text/html
  +         * (with browsermatch) for them
  +         */
  +        if (strncmp(r->content_type, "text/html", 9)
  +            && apr_table_get(r->subprocess_env, "gzip-only-text/html")) {
  +            return ap_pass_brigade(f->next, bb);
  +        }
   
           /* if they don't have the line, then they can't play */
           accepts = apr_table_get(r->headers_in, "Accept-Encoding");
  
  
  

Mime
View raw message