Comparing version 1.0.0 to 1.0.1
@@ -23,3 +23,3 @@ const { request } = require('https'); | ||
let type = r.headers['content-type']; | ||
if (type && type.includes('application/json')) { | ||
if (type && out && type.includes('application/json')) { | ||
out = JSON.parse(out); | ||
@@ -26,0 +26,0 @@ } |
{ | ||
"name": "httpie", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "lukeed/httpie", | ||
@@ -5,0 +5,0 @@ "description": "A lightweight, Promise-based wrapper for Node.js HTTP requests~!", |
@@ -27,3 +27,3 @@ <div align="center"> | ||
* Automatically handles JSON requests and responses | ||
* Extremely lightweight with **no dependencies** – 632 bytes! | ||
* Extremely lightweight with **no dependencies** – 634 bytes! | ||
* Includes aliases for common HTTP verbs: `get`, `post`, `put`, `patch`, and `del` | ||
@@ -30,0 +30,0 @@ |
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
11347