From 0a76b45ecafc08d3624c237da8a946d960103195 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 14 Jan 2016 00:59:07 +0900 Subject: [PATCH] nghttpx: Fix bug that key_prev is not updated --- src/shrpx_downstream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_downstream.cc b/src/shrpx_downstream.cc index a02440c8..45b522b2 100644 --- a/src/shrpx_downstream.cc +++ b/src/shrpx_downstream.cc @@ -339,7 +339,7 @@ void add_header(size_t &sum, Headers &headers, const uint8_t *name, } // namespace namespace { -void append_last_header_key(bool key_prev, size_t &sum, Headers &headers, +void append_last_header_key(bool &key_prev, size_t &sum, Headers &headers, const char *data, size_t len) { assert(key_prev); sum += len; @@ -349,7 +349,7 @@ void append_last_header_key(bool key_prev, size_t &sum, Headers &headers, } // namespace namespace { -void append_last_header_value(bool key_prev, size_t &sum, Headers &headers, +void append_last_header_value(bool &key_prev, size_t &sum, Headers &headers, const char *data, size_t len) { key_prev = false; sum += len;