retry-request
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -117,3 +117,3 @@ 'use strict'; | ||
// is up with the `streamResponseHandled` tracking. | ||
.on('error', function(err) { | ||
.on('error', function (err) { | ||
if (streamResponseHandled) { | ||
@@ -126,3 +126,3 @@ return; | ||
}) | ||
.on('response', function(resp, body) { | ||
.on('response', function (resp, body) { | ||
if (streamResponseHandled) { | ||
@@ -180,2 +180,5 @@ return; | ||
delayStream.pipe(retryStream); | ||
requestStream.on('error', function (err) { | ||
retryStream.destroy(err); | ||
}); | ||
} else { | ||
@@ -182,0 +185,0 @@ callback(err, response, body); |
{ | ||
"name": "retry-request", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Retry a request.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10400
177