Index: net/url_request/url_request.cc |
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc |
index 7b55201e8bd27b8cc3b9463d82182d8a7b41d8e7..dbbf6bc77c407ab566bda1da3fe3accbefd8725d 100644 |
--- a/net/url_request/url_request.cc |
+++ b/net/url_request/url_request.cc |
@@ -223,7 +223,11 @@ void URLRequest::SetExtraRequestHeaderByName(const string& name, |
const string& value, |
bool overwrite) { |
DCHECK(!is_pending_); |
- NOTREACHED() << "implement me!"; |
+ if (overwrite) { |
+ extra_request_headers_.SetHeader(name, value); |
+ } else { |
+ extra_request_headers_.SetHeaderIfMissing(name, value); |
+ } |
} |
void URLRequest::SetExtraRequestHeaders( |