Chromium Code Reviews| Index: content/browser/download/download_job_factory.cc |
| diff --git a/content/browser/download/download_job_factory.cc b/content/browser/download/download_job_factory.cc |
| index f1704709ba5c907fd8c9592b9693cf6cc1b96066..d86a77064065451cd289ae7ee16aa572222de233 100644 |
| --- a/content/browser/download/download_job_factory.cc |
| +++ b/content/browser/download/download_job_factory.cc |
| @@ -28,6 +28,7 @@ bool IsParallelizableDownload(const DownloadCreateInfo& create_info) { |
| // 4. Content-Length header. |
| // 5. Content-Length is no less than the minimum slice size configuration. |
| // 6. HTTP/1.1 protocol, not QUIC nor HTTP/1.0. |
| + // 7. HTTP GET method in the initial request. |
| // Etag and last modified are stored into DownloadCreateInfo in |
| // DownloadRequestCore only if the response header complies to the strong |
| @@ -40,9 +41,10 @@ bool IsParallelizableDownload(const DownloadCreateInfo& create_info) { |
| bool satisfy_connection_type = create_info.connection_info == |
| net::HttpResponseInfo::CONNECTION_INFO_HTTP1_1; |
|
David Trainor- moved to gerrit
2017/05/22 21:15:13
Pull out to a pool.
xingliu
2017/05/22 22:01:49
Done.
|
| - bool is_parallelizable = has_strong_validator && create_info.accept_range && |
| - has_content_length && satisfy_min_file_size && |
| - satisfy_connection_type; |
| + bool is_parallelizable = |
| + has_strong_validator && create_info.accept_range && has_content_length && |
| + satisfy_min_file_size && satisfy_connection_type && |
| + create_info.method == "GET" && create_info.url().SchemeIsHTTPOrHTTPS(); |
| if (!IsParallelDownloadEnabled()) |
| return is_parallelizable; |