summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-10-02 12:34:21 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-10-02 12:35:18 -0400
commitdd22dfa74c3ff526de513cdbd4b95120feab087a (patch)
treed1e202bb20ee2bbb9609aff4a65b40f92e1618d1
parent37209081673bc74a8cd27cec545f569da967e613 (diff)
downloadlighttpd-git-dd22dfa74c3ff526de513cdbd4b95120feab087a.tar.gz
[core] fix chunked decoding from backend (#3044, #3046)
(fix typo missed in merge of 8e6dc4fe)
-rw-r--r--src/response.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/response.c b/src/response.c
index b2ab4cee..beded193 100644
--- a/src/response.c
+++ b/src/response.c
@@ -834,7 +834,7 @@ http_response_write_prepare(request_st * const r)
if (r->resp_decode_chunked) {
/*(reconstitute initial partially-decoded chunk)*/
off_t gw_chunked = r->gw_dechunk->gw_chunked;
- if (gw_chunked > 2)
+ if (gw_chunked >= 2)
qlen += gw_chunked - 2;
else if (1 == gw_chunked)
chunkqueue_append_mem(&r->write_queue,