From 25fbc7b4351bfab133f1d05a2171f8422ea2b26f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 4 Nov 2016 02:00:50 +0900 Subject: [PATCH] nghttpx: Reset flags as well --- src/shrpx_downstream.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shrpx_downstream.cc b/src/shrpx_downstream.cc index 3f8dfdba..6d637506 100644 --- a/src/shrpx_downstream.cc +++ b/src/shrpx_downstream.cc @@ -466,7 +466,10 @@ void FieldStore::append_last_header_value(const char *data, size_t len) { headers_, data, len); } -void FieldStore::clear_headers() { headers_.clear(); } +void FieldStore::clear_headers() { + headers_.clear(); + header_key_prev_ = false; +} void FieldStore::add_trailer_token(const StringRef &name, const StringRef &value, bool no_index,