Socket
Socket
Sign inDemoInstall

httpie

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpie - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

dist/httpie.js

@@ -33,4 +33,5 @@ const { parse } = require('url');

if (opts.body) {
let str = JSON.stringify(opts.body);
req.setHeader('content-type', 'application/json');
let isObj = typeof opts.body === 'object';
let str = isObj ? JSON.stringify(opts.body) : opts.body;
isObj && req.setHeader('content-type', 'application/json');
req.setHeader('content-length', Buffer.byteLength(str));

@@ -37,0 +38,0 @@ req.write(str);

2

package.json
{
"name": "httpie",
"version": "0.1.0",
"version": "0.1.1",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc