hgomez      2002/12/09 05:22:45

  Modified:    webapp/apache-2.0 mod_webapp.c
  Log:
  Make webapp works with filters in Apache 2.0, ie mod_deflate and 
  AddOutputFilterByType DEFLATE text/html.
  
  NB: My first webapp commit ;-)
  
  
  
  Revision  Changes    Path
  1.12      +7 -2      jakarta-tomcat-connectors/webapp/apache-2.0/mod_webapp.c
  
  Index: mod_webapp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/apache-2.0/mod_webapp.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- mod_webapp.c      13 Jun 2002 11:06:47 -0000      1.11
  +++ mod_webapp.c      9 Dec 2002 13:22:45 -0000       1.12
  @@ -309,7 +309,12 @@
   
       if (type==NULL) return;
   
  -    req->content_type=apr_pstrdup(req->pool,type);
  +/*    req->content_type=apr_pstrdup(req->pool,type); */
  +    /* It should be done like this in Apache 2.0 */
  +    /* This way, Apache 2.0 will be able to set the output filter */
  +    /* and it make webapp useable with deflate using AddOutputFilterByType DEFLATE 
text/html */
  +    ap_set_content_type(req, apr_pstrdup(req->pool,type));
  +    
       apr_table_add(req->headers_out,"Content-Type",apr_pstrdup(req->pool,type));
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to