Skip to content

Commit

Permalink
lib: adding keep-alive header to download requests
Browse files Browse the repository at this point in the history
PR-URL: #1863
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
Milad Farazmand authored and rvagg committed Sep 26, 2019
1 parent 1186e89 commit aab118e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ function download (gyp, env, url) {
var requestOpts = {
uri: url,
headers: {
'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')'
'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')',
'Connection': 'keep-alive'
}
}

Expand Down

0 comments on commit aab118e

Please sign in to comment.