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 83694437450b028590ae8617ad8ce1ec05071154..2c2cc4226b6b89791616dfe514d8cd41b291222c 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -631,6 +631,11 @@ int HttpStreamFactoryImpl::Job::DoStart() { |
is_port_allowed = IsPortAllowedByFtp(origin_.port()); |
} |
+ if (request_info_.url.SchemeIs("https") || |
+ request_info_.url.SchemeIs("wss")) { |
+ is_port_allowed = IsPortAllowedByHttpsOrWss(origin_.port()); |
+ } |
+ |
if (!is_port_allowed && !IsPortAllowedByOverride(origin_.port())) { |
if (waiting_job_) { |
waiting_job_->Resume(this); |