mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Disable keep alive, fixing issues with redirects taking too long.
This commit is contained in:
@@ -54,7 +54,8 @@ UrlResolver.prototype._hasNew = function (pkgMeta) {
|
||||
proxy: this._remote.protocol === 'https:' ? this._config.httpsProxy : this._config.proxy,
|
||||
strictSSL: this._config.strictSsl,
|
||||
timeout: 5000,
|
||||
headers: reqHeaders
|
||||
headers: reqHeaders,
|
||||
agent: false // Do not use keep alive, solves #437
|
||||
})
|
||||
// Compare new headers with the old ones
|
||||
.spread(function (response) {
|
||||
@@ -113,7 +114,8 @@ UrlResolver.prototype._download = function () {
|
||||
proxy: this._remote.protocol === 'https:' ? this._config.httpsProxy : this._config.proxy,
|
||||
strictSSL: this._config.strictSsl,
|
||||
timeout: 5000,
|
||||
headers: reqHeaders
|
||||
headers: reqHeaders,
|
||||
agent: false // Do not use keep alive, solves #437
|
||||
})
|
||||
.on('response', function (response) {
|
||||
this._response = response;
|
||||
|
||||
Reference in New Issue
Block a user