Comparing version 0.1.1 to 0.1.2
@@ -33,3 +33,3 @@ const { parse } = require('url'); | ||
if (opts.body) { | ||
let isObj = typeof opts.body === 'object'; | ||
let isObj = typeof opts.body === 'object' && !Buffer.isBuffer(opts.body); | ||
let str = isObj ? JSON.stringify(opts.body) : opts.body; | ||
@@ -36,0 +36,0 @@ isObj && req.setHeader('content-type', 'application/json'); |
{ | ||
"name": "httpie", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"repository": "lukeed/httpie", | ||
@@ -5,0 +5,0 @@ "description": "A lightweight, Promise-based wrapper for Node.js HTTP requests~!", |
Sorry, the diff of this file is not supported yet
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
4876