Skip to content

Commit aab118e

Browse files
Milad Farazmandrvagg
authored andcommitted
lib: adding keep-alive header to download requests
PR-URL: #1863 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 1186e89 commit aab118e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ function download (gyp, env, url) {
391391
var requestOpts = {
392392
uri: url,
393393
headers: {
394-
'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')'
394+
'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')',
395+
'Connection': 'keep-alive'
395396
}
396397
}
397398

0 commit comments

Comments
 (0)