From bec50b3799447c53e0f78204b6484dcb9f0ad31d Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Wed, 30 Jul 1997 15:25:29 +0000 Subject: [PATCH] get_client_block() returns wrong length if policy is REQUEST_CHUNKED_DECHUNK PR: 815 Submitted by: Kenichi Hori Reviewed by: Dean Gaudet, Ralf S. Engelschall, Jim Jagielski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78817 13f79535-47bb-0310-9956-ffa450edef68 --- APACHE_1_2_X/src/CHANGES | 4 ++++ APACHE_1_2_X/src/main/http_protocol.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/APACHE_1_2_X/src/CHANGES b/APACHE_1_2_X/src/CHANGES index 2118a568ec8..101337fb61a 100644 --- a/APACHE_1_2_X/src/CHANGES +++ b/APACHE_1_2_X/src/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 1.2.2 + *) get_client_block() returns wrong length if policy is + REQUEST_CHUNKED_DECHUNK. + [Kenichi Hori ] PR#815 + *) Properly treat container like other containers in mod_info. [Marc Slemko] PR#848 diff --git a/APACHE_1_2_X/src/main/http_protocol.c b/APACHE_1_2_X/src/main/http_protocol.c index 822ad68c6cc..a797c703a6e 100644 --- a/APACHE_1_2_X/src/main/http_protocol.c +++ b/APACHE_1_2_X/src/main/http_protocol.c @@ -1444,7 +1444,11 @@ long get_client_block (request_rec *r, char *buffer, int bufsiz) buffer[chunk_start++] = LF; buffer += chunk_start; /* and pass line on to caller */ bufsiz -= chunk_start; - } + } else { + /* REQUEST_CHUNKED_DECHUNK -- do not include the length of + * the header in the return value */ + chunk_start = 0; + } } /* When REQUEST_CHUNKED_PASS, we are */ if (r->remaining == -1) { /* reading footers until empty line */ -- 2.47.2