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; |