From: Greg Stein Date: Thu, 17 Aug 2000 01:39:12 +0000 (+0000) Subject: temp fix for filter ordering: +1 on the core filter's type. X-Git-Tag: APACHE_2_0_ALPHA_6~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=209770a679611d11ad371afb5efb8f990315ce45;p=thirdparty%2Fapache%2Fhttpd.git temp fix for filter ordering: +1 on the core filter's type. bug fix in chunk_filter(): it was creating the wrong-size bucket. chunking now appears to be working (without using BUFF). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86092 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 013f1bed19d..20355174fb6 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2938,7 +2938,7 @@ static int chunk_filter(ap_filter_t *f, ap_bucket_brigade *b) } apr_snprintf(lenstr, 6, "%x\r\n", len); - dptr = ap_bucket_transient_create(lenstr, 4, &tempint); + dptr = ap_bucket_transient_create(lenstr, strlen(lenstr), &tempint); b->head->prev = dptr; dptr->next = b->head; b->head = dptr; @@ -3068,7 +3068,7 @@ static void register_hooks(void) * request-processing time. */ ap_hook_insert_filter(core_register_filter, NULL, NULL, AP_HOOK_MIDDLE); - ap_register_filter("CORE", core_filter, AP_FTYPE_CONNECTION); + ap_register_filter("CORE", core_filter, AP_FTYPE_CONNECTION + 1); ap_register_filter("CHUNK", chunk_filter, AP_FTYPE_CONNECTION); }