Socket
Socket
Sign inDemoInstall

request

Package Overview
Dependencies
0
Maintainers
0
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.9 to 2.0.0

3

main.js

@@ -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 @@ })

2

package.json
{ "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" :

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc