Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Unified Diff: net/spdy/spdy_proxy_client_socket.cc

Issue 9958023: Properly handle spdy3 responses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_proxy_client_socket.cc
diff --git a/net/spdy/spdy_proxy_client_socket.cc b/net/spdy/spdy_proxy_client_socket.cc
index c0ba9d1051e054f5031d0229909ef8a8600534ca..6a1076e7d432779c4c7ca7a8fc663525a2eab1e7 100644
--- a/net/spdy/spdy_proxy_client_socket.cc
+++ b/net/spdy/spdy_proxy_client_socket.cc
@@ -472,9 +472,9 @@ int SpdyProxyClientSocket::OnResponseReceived(
return OK;
// Save the response
- int rv = SpdyHeadersToHttpResponse(response, &response_);
- if (rv == ERR_INCOMPLETE_SPDY_HEADERS)
- return rv; // More headers are coming.
+ if (!SpdyHeadersToHttpResponse(
+ response, spdy_stream_->GetProtocolVersion(), &response_))
+ return ERR_INCOMPLETE_SPDY_HEADERS;
OnIOComplete(status);
return OK;
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698