]> granicus.if.org Git - apache/commitdiff
Fix a broken hack. We should save the state in the ctx pointer, not a
authorRyan Bloom <rbb@apache.org>
Sat, 21 Oct 2000 17:07:47 +0000 (17:07 +0000)
committerRyan Bloom <rbb@apache.org>
Sat, 21 Oct 2000 17:07:47 +0000 (17:07 +0000)
static integer
Submitted by: Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86689 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 8d3ca3ffc8ffc2ce2b9fe698b3c467626e2a304c..0a1f0ee7708b1cab9f07b8695cb08c71ae692986 100644 (file)
@@ -2227,14 +2227,11 @@ AP_CORE_DECLARE(int) ap_http_header_filter(ap_filter_t *f, ap_bucket_brigade *b)
     const long int zero = 0L;
     char *date = NULL;
     request_rec *r = f->r;
-/* This hack should be removed as soon as we can remove filters */
-    static int foobar = 0;
 
-    if (foobar != 0) {
+    if ((int)f->ctx != 0) {
         return ap_pass_brigade(f->next, b);
     }
-    foobar++;
-/* END HACK */
+    (int)f->ctx++;
 
     if (r->assbackwards) {
         if (!r->main)