From 5ccd5b6953c95986407a735a41e8c36cf05944d1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 4 Nov 2015 00:28:44 +0900 Subject: Remove content-length and content-range if transfer-encoding is given See GH-473 --- src/HttpHeader.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/HttpHeader.cc') diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 6b4739b5..a9fe23a6 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -53,6 +53,11 @@ void HttpHeader::put(int hdKey, const std::string& value) table_.insert(vt); } +void HttpHeader::remove(int hdKey) +{ + table_.erase(hdKey); +} + bool HttpHeader::defined(int hdKey) const { return table_.count(hdKey); -- cgit