From: Ryan Bloom Date: Sat, 21 Oct 2000 17:07:47 +0000 (+0000) Subject: Fix a broken hack. We should save the state in the ctx pointer, not a X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22c5ed5e4c745f48b6890ab84ba02dfa34b4f3ea;p=apache Fix a broken hack. We should save the state in the ctx pointer, not a static integer Submitted by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86689 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 8d3ca3ffc8..0a1f0ee770 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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)