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-Tag: APACHE_2_0_ALPHA_8~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b22f05745ec19e800c646be551083841902a211;p=thirdparty%2Fapache%2Fhttpd.git 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 8d3ca3ffc8f..0a1f0ee7708 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)