hgomez 2002/12/09 05:23:20
Modified: jk/native2/server/apache2 jk_service_apache2.c
Log:
Make jk2 works with filters in Apache 2.0, ie mod_deflate and
AddOutputFilterByType DEFLATE text/html.
Revision Changes Path
1.33 +5 -2
jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c
Index: jk_service_apache2.c
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- jk_service_apache2.c 22 Nov 2002 16:04:06 -0000 1.32
+++ jk_service_apache2.c 9 Dec 2002 13:23:19 -0000 1.33
@@ -105,7 +105,10 @@
if( val!=NULL ) {
char *tmp = apr_pstrdup(r->pool, val);
ap_content_type_tolower(tmp);
- r->content_type = tmp;
+ /* 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 jk useable with deflate using AddOutputFilterByType
DEFLATE text/html */
+ ap_set_content_type(r, tmp);
}
val= headers->get( env, headers, "Last-Modified");
if( val!=NULL ) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>