Skip to content

Commit aab118e

Browse files
Milad Farazmandrvagg
Milad Farazmand
authored andcommitted
lib: adding keep-alive header to download requests
PR-URL: #1863 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 1186e89 commit aab118e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/install.js

+2-1
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)