tiny-json-http
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -31,7 +31,5 @@ var qs = require('querystring') | ||
opts.headers['Content-Type'] = opts.headers['Content-Type'] || defaultContentType | ||
// opts.headers['Content-Type'] = 'application/x-www-form-urlencoded' | ||
var reqJSON = opts.headers['Content-Type'].startsWith('application/json') | ||
var postData = reqJSON? JSON.stringify(options.data || {}) : qs.stringify(options.data || {}) | ||
console.log('debug info for!!!', opts) | ||
// make a POST request | ||
@@ -38,0 +36,0 @@ var req = method(opts, function(res) { |
{ | ||
"name": "tiny-json-http", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
4985
116