Comparing version 5.7.0 to 5.7.1
@@ -40,5 +40,2 @@ 'use strict'; | ||
res.url = redirectUrl || requestUrl; | ||
res.requestUrl = requestUrl; | ||
if (isRedirect(statusCode) && opts.followRedirect && 'location' in res.headers && (opts.method === 'GET' || opts.method === 'HEAD')) { | ||
@@ -63,3 +60,7 @@ res.resume(); | ||
setImmediate(function () { | ||
ee.emit('response', typeof unzipResponse === 'function' && req.method !== 'HEAD' ? unzipResponse(res) : res); | ||
var response = typeof unzipResponse === 'function' && req.method !== 'HEAD' ? unzipResponse(res) : res; | ||
response.url = redirectUrl || requestUrl; | ||
response.requestUrl = requestUrl; | ||
ee.emit('response', response); | ||
}); | ||
@@ -66,0 +67,0 @@ }); |
{ | ||
"name": "got", | ||
"version": "5.7.0", | ||
"version": "5.7.1", | ||
"description": "Simplified HTTP/HTTPS requests", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
22694
317