summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 20:25:48 +0000
committereustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 20:25:48 +0000
commitf01d197352e61b1b4892721fad77177cca4a652b (patch)
tree253b9336873906724d86faeb0c37756c5ae3b58b
parentbe229b36a93836cb6927f70a139b103bc66c57d2 (diff)
downloadchromium_src-f01d197352e61b1b4892721fad77177cca4a652b.zip
chromium_src-f01d197352e61b1b4892721fad77177cca4a652b.tar.gz
chromium_src-f01d197352e61b1b4892721fad77177cca4a652b.tar.bz2
Do not forge response headers text for SPDY requests.
BUG=350113 Review URL: https://codereview.chromium.org/198193003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256914 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/browser/devtools/devtools_netlog_observer.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/content/browser/devtools/devtools_netlog_observer.cc b/content/browser/devtools/devtools_netlog_observer.cc
index 6b77c0b..27ce58a 100644
--- a/content/browser/devtools/devtools_netlog_observer.cc
+++ b/content/browser/devtools/devtools_netlog_observer.cc
@@ -148,9 +148,15 @@ void DevToolsNetLogObserver::OnAddURLRequestEntry(
response_headers->EnumerateHeaderLines(&it, &name, &value); ) {
info->response_headers.push_back(std::make_pair(name, value));
}
- info->response_headers_text =
- net::HttpUtil::ConvertHeadersBackToHTTPResponse(
- response_headers->raw_headers());
+
+ if (!info->request_headers_text.empty()) {
+ info->response_headers_text =
+ net::HttpUtil::ConvertHeadersBackToHTTPResponse(
+ response_headers->raw_headers());
+ } else {
+ // SPDY request.
+ info->response_headers_text = "";
+ }
break;
}
default: