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/filters mod_deflate.c
Date Mon, 20 May 2002 00:07:33 GMT
ianh        02/05/19 17:07:33

  Modified:    modules/filters mod_deflate.c
  Log:
  content with "Content-Encoding" header, content is encoded.
  But mod_deflate does not check it. It cause to encode content twice.
  
  This problem is reproducable by getting encoded content via mod_proxy.
  
  Patch Contributed by kaz@asada.sytes.net (ASADA Kazuhisa)
  Bug #9222
  
  Thanks Kazuhisa
  
  Revision  Changes    Path
  1.6       +6 -0      httpd-2.0/modules/filters/mod_deflate.c
  
  Index: mod_deflate.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_deflate.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- mod_deflate.c	17 May 2002 11:33:09 -0000	1.5
  +++ mod_deflate.c	20 May 2002 00:07:33 -0000	1.6
  @@ -273,6 +273,12 @@
               return ap_pass_brigade(f->next, bb);
           }
   
  +        /* content is already encoded, so don't encode it again */
  +        if (apr_table_get(r->headers_in, "Content-Encoding")) {
  +            ap_remove_output_filter(f);
  +            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");
           if (accepts == NULL) {
  
  
  

Mime
View raw message