simple-get
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -35,3 +35,2 @@ module.exports = simpleGet | ||
} | ||
delete opts.body; delete opts.form | ||
@@ -41,4 +40,6 @@ if (body) { | ||
if (!isStream(body)) opts.headers['content-length'] = Buffer.byteLength(body) | ||
if (opts.json) opts.headers['content-type'] = 'application/json' | ||
if (opts.json && !opts.form) opts.headers['content-type'] = 'application/json' | ||
} | ||
delete opts.body; delete opts.form | ||
if (opts.json) opts.headers.accept = 'application/json' | ||
@@ -45,0 +46,0 @@ if (opts.method) opts.method = opts.method.toUpperCase() |
{ | ||
"name": "simple-get", | ||
"description": "Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines.", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
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
12817