summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-02-04 20:00:31 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2019-02-04 20:00:47 -0500
commit9e55fd72b5a41cfa3f0174ef7bfe3e37e345d239 (patch)
tree85f1e822a3f6434192ce4a4552c4a3ff2241d024
parent79aa8613e143e0a40625ad33c42e1bd7cda27304 (diff)
downloadlighttpd1.4-9e55fd72b5a41cfa3f0174ef7bfe3e37e345d239.tar.gz
lighttpd1.4-9e55fd72b5a41cfa3f0174ef7bfe3e37e345d239.zip
[core] quickly clear request buffer for reuse
-rw-r--r--src/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections.c b/src/connections.c
index e3df3203..0fde03ca 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -748,7 +748,7 @@ found_header_end:
/* found */
if (last_chunk) {
- buffer_reset(con->request.request);
+ buffer_clear(con->request.request);
for (c = cq->first; c; c = c->next) {
size_t len = buffer_string_length(c->mem) - c->offset;