| 87 | } |
| 88 | |
| 89 | void HttpHeader::RemoveHeader(const char* key) { |
| 90 | if (IsContentType(key)) { |
| 91 | _content_type.clear(); |
| 92 | } else { |
| 93 | _headers.erase(key); |
| 94 | if (IsSetCookie(key)) { |
| 95 | _first_set_cookie = NULL; |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void HttpHeader::AppendHeader(const std::string& key, |
| 101 | const butil::StringPiece& value) { |