nghttpx: Fix bug that key_prev is not updated
This commit is contained in:
parent
6d6a00f1f5
commit
0a76b45eca
|
@ -339,7 +339,7 @@ void add_header(size_t &sum, Headers &headers, const uint8_t *name,
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
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) {
|
const char *data, size_t len) {
|
||||||
assert(key_prev);
|
assert(key_prev);
|
||||||
sum += len;
|
sum += len;
|
||||||
|
@ -349,7 +349,7 @@ void append_last_header_key(bool key_prev, size_t &sum, Headers &headers,
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
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) {
|
const char *data, size_t len) {
|
||||||
key_prev = false;
|
key_prev = false;
|
||||||
sum += len;
|
sum += len;
|
||||||
|
|
Loading…
Reference in New Issue