nghttpx: Fix bug that key_prev is not updated

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-14 00:59:07 +09:00
parent 6d6a00f1f5
commit 0a76b45eca
1 changed files with 2 additions and 2 deletions

View File

@ -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;