summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 82272bb..ec3ec3b 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -464,6 +464,10 @@ bool HttpResponseHeaders::HasHeaderValue(const std::string& name,
return false;
}
+bool HttpResponseHeaders::HasHeader(const std::string& name) const {
+ return FindHeader(0, name) != std::string::npos;
+}
+
// Note: this implementation implicitly assumes that line_end points at a valid
// sentinel character (such as '\0').
// static