Index: components/cronet/android/url_request_peer.cc |
diff --git a/components/cronet/android/url_request_peer.cc b/components/cronet/android/url_request_peer.cc |
index a3b4aa787493fb59f35afbaef84f01aeb2aa9ffd..54094bf6773fc760639c32b003d348ae6d816922 100644 |
--- a/components/cronet/android/url_request_peer.cc |
+++ b/components/cronet/android/url_request_peer.cc |
@@ -70,6 +70,15 @@ void URLRequestPeer::AppendChunk(const char* bytes, |
is_last_chunk)); |
} |
+ |
+std::string URLRequestPeer::GetHeader(const std::string &name) const { |
+ std::string value; |
+ if (url_request_ != NULL) { |
+ url_request_->GetResponseHeaderByName(name, &value); |
+ } |
+ return value; |
+} |
+ |
void URLRequestPeer::Start() { |
context_->GetNetworkTaskRunner()->PostTask( |
FROM_HERE, |