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 a6ca05e62611b779a6858f275ebc3f138701819b..e1bffb374b423d919202bbf93a6b15709acb8cb4 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -1137,7 +1137,7 @@ bool HttpStreamFactoryImpl::Job::IsOrphaned() const { |
return !IsPreconnecting() && !request_; |
} |
-bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() const { |
+bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() { |
if (!HttpStreamFactory::http_pipelining_enabled()) { |
return false; |
} |
@@ -1147,7 +1147,11 @@ bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() const { |
if (using_ssl_) { |
return false; |
} |
- return request_info_.method == "GET" || request_info_.method == "HEAD"; |
+ if (request_info_.method != "GET" && request_info_.method != "HEAD") { |
+ return false; |
+ } |
+ return stream_factory_->http_pipelined_host_pool_.IsHostEligibleForPipelining( |
+ origin_); |
} |
} // namespace net |