Index: net/http/http_stream_factory_impl_job.cc |
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc |
index b07a461e9b0048a75a9d2c36958c99f6365997cf..fbf0b0d20cbff4928282484af31c89791d5ea5d4 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -1111,6 +1111,9 @@ int HttpStreamFactoryImpl::Job::DoCreateStream() { |
SetSocketMotivation(); |
if (!using_spdy_) { |
+ if (IsAlternate()) { |
+ return ERR_NPN_NEGOTIATION_FAILED; |
+ } |
davidben
2015/05/01 23:21:46
Nit: While I do like curly braces, Chromium style
Bence
2015/05/04 12:05:07
Done.
|
// We may get ftp scheme when fetching ftp resources through proxy. |
bool using_proxy = (proxy_info_.is_http() || proxy_info_.is_https()) && |
(request_info_.url.SchemeIs("http") || |