diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-11-04 00:28:44 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-11-04 00:28:44 +0900 |
| commit | 5ccd5b6953c95986407a735a41e8c36cf05944d1 (patch) | |
| tree | a834c56d9feb27ed1084239462c1106c13b91076 /src/HttpHeader.cc | |
| parent | 4bbc71c8e6c6aa7b5441e30da3a5efc5b810073a (diff) | |
Remove content-length and content-range if transfer-encoding is given
See GH-473
Diffstat (limited to 'src/HttpHeader.cc')
| -rw-r--r-- | src/HttpHeader.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
