From 22c5ed5e4c745f48b6890ab84ba02dfa34b4f3ea Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Sat, 21 Oct 2000 17:07:47 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) -- 2.50.1