]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
temp fix for filter ordering: +1 on the core filter's type.
authorGreg Stein <gstein@apache.org>
Thu, 17 Aug 2000 01:39:12 +0000 (01:39 +0000)
committerGreg Stein <gstein@apache.org>
Thu, 17 Aug 2000 01:39:12 +0000 (01:39 +0000)
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

modules/http/http_core.c

index 013f1bed19dbe271924e713b16f2a399f2cd28ca..20355174fb695b7275da8e2da66416711d54bcd6 100644 (file)
@@ -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);
 }