hgomez 2002/12/09 05:19:18 Modified: jk/native/apache-2.0 mod_jk.c Log: Make jk works with filters in Apache 2.0, ie mod_deflate and AddOutputFilterByType DEFLATE text/html. Revision Changes Path 1.62 +5 -2 jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c Index: mod_jk.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- mod_jk.c 6 Dec 2002 18:54:45 -0000 1.61 +++ mod_jk.c 9 Dec 2002 13:19:17 -0000 1.62 @@ -240,7 +240,10 @@ if(!strcasecmp(header_names[h], "Content-type")) { char *tmp = apr_pstrdup(r->pool, header_values[h]); 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); } else if(!strcasecmp(header_names[h], "Location")) { #ifdef AS400 /* Fix escapes in Location Header URL*/
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>