Comparing version 2.0.3 to 2.0.4
@@ -171,3 +171,8 @@ // Copyright 2010-2011 Mikeal Rogers | ||
options.headers['content-type'] = 'application/json' | ||
options.body = JSON.stringify(options.json) | ||
if (typeof options.json === 'boolean') { | ||
options.body = JSON.stringify(options.body) | ||
} else { | ||
options.body = JSON.stringify(options.json) | ||
} | ||
} else if (options.multipart) { | ||
@@ -396,2 +401,3 @@ options.body = '' | ||
var d = function (opts, callback) { | ||
if (typeof opts === 'string') opts = {uri:opts} | ||
for (i in options) { | ||
@@ -398,0 +404,0 @@ if (opts[i] === undefined) opts[i] = options[i] |
{ "name" : "request" | ||
, "description" : "Simplified HTTP request client." | ||
, "tags" : ["http", "simple", "util", "utility"] | ||
, "version" : "2.0.3" | ||
, "version" : "2.0.4" | ||
, "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
85320
995