httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject [PATCH] some HTTP filters unnecessary for subrequests
Date Wed, 06 Jun 2001 17:51:24 GMT
There is nothing like a patch for finding out why you're confused, so 
here goes nothing...

With this patch I finally see the output of my included file.

Note that I'm running with code in ap_sub_req_output_filter which
handles buckets with private data in the wrong (i.e., subrequest)
pool.  Otherwise I might get a dropped connection (due to segfault)
instead of my included file.

Index: modules/http/http_core.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/http/http_core.c,v
retrieving revision 1.278
diff -u -r1.278 http_core.c
--- modules/http/http_core.c	2001/06/01 17:26:13	1.278
+++ modules/http/http_core.c	2001/06/06 17:49:32
@@ -297,9 +297,11 @@
 
 static void ap_http_insert_filter(request_rec *r)
 {
-    ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
-    ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
-    ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
+    if (!r->main) {
+        ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
+        ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
+        ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
+    }
 }
 
 static void register_hooks(apr_pool_t *p)

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...


Mime
View raw message