tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guenter Knauf <efl...@gmx.net>
Subject [PATCH] ./jk/native2/common/jk_worker_status.c - dont print style with text/plain
Date Tue, 16 Mar 2004 03:14:55 GMT
Hi,
this simple patch supresses the output of the style when we are in text/plain mode.

========================================================================
--- jk_worker_status.c.orig	Mon Mar 15 16:04:08 2004
+++ jk_worker_status.c	Tue Mar 16 04:02:24 2004
@@ -953,7 +953,10 @@
                         
     s->head(env, s );
 
-    s->jkprintf(env, s, "<style>%s</style>\n", DEFAULT_CSS );
+    if( !(s->query_string != NULL &&
+        strncmp( s->query_string, "qry=", 4) == 0 ) ) {
+        s->jkprintf(env, s, "<style>%s</style>\n", DEFAULT_CSS );
+    }
 
     /** Process the query string.
      */

Guenter.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message