From c20cacac99afa894879c3db2d6868b6373aacb33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 11 Jul 2016 22:03:27 +0800 Subject: [PATCH] Redownload files with the keep-alive option --- lib/tools/redownload/redownload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tools/redownload/redownload.js b/lib/tools/redownload/redownload.js index e5a72ce..97eff8a 100644 --- a/lib/tools/redownload/redownload.js +++ b/lib/tools/redownload/redownload.js @@ -4,6 +4,7 @@ * */ +/*jshint -W069 */ var debug = require('debug')('ylt:redownload'); var Q = require('q'); @@ -460,6 +461,7 @@ var Redownload = function() { // Always add a gzip header before sending, in case the server listens to it var reqHeaders = entry.requestHeaders; reqHeaders['Accept-Encoding'] = 'gzip, deflate'; + reqHeaders['Connection'] = 'keep-alive'; var requestOptions = { method: entry.method,