Comparing version 1.9.9 to 2.0.0
@@ -222,2 +222,3 @@ // Copyright 2010-2011 Mikeal Rogers | ||
options.response = response; | ||
response.request = options; | ||
if (setHost) delete options.headers.host; | ||
@@ -234,2 +235,3 @@ if (options.timeout && options.timeoutTimer) clearTimeout(options.timeoutTimer); | ||
options.emit('error', new Error("Exceeded maxRedirects. Probably stuck in a redirect loop.")); | ||
return; | ||
} | ||
@@ -292,2 +294,3 @@ options._redirectsFollowed += 1; | ||
options.on("end", function () { | ||
response.body = buffer; | ||
options.callback(null, response, buffer); | ||
@@ -294,0 +297,0 @@ }) |
{ "name" : "request" | ||
, "description" : "Simplified HTTP request client." | ||
, "tags" : ["http", "simple", "util", "utility"] | ||
, "version" : "1.9.9" | ||
, "version" : "2.0.0" | ||
, "author" : "Mikeal Rogers <mikeal.rogers@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
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
82778
949