Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phin

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phin - npm Package Compare versions

Comparing version 2.5.3 to 2.5.4

4

lib/phin.js

@@ -75,3 +75,3 @@ const http = require('http')

options.headers['Content-Type'] = 'application/x-www-url-form-encoded'
options.headers['Content-Type'] = 'application/x-www-form-urlencoded'
options.headers['Content-Length'] = Buffer.byteLength(formDataString)

@@ -137,3 +137,3 @@

const contentType = options.headers['content-type'] || options.headers['Content-Type']
if (contentType === 'application/x-www-url-form-encoded') {
if (contentType === 'application/x-www-form-urlencoded') {
postData = qs.stringify(opts.data)

@@ -140,0 +140,0 @@ } else {

{
"name": "phin",
"version": "2.5.3",
"version": "2.5.4",
"description": "Ultra-simple, lightweight, dependency-free Node.JS HTTP request client",

@@ -5,0 +5,0 @@ "main": "lib/phin.js",

@@ -51,3 +51,3 @@ const w = require('whew')

if (Buffer.byteLength(postbody) === Number(req.headers['content-length'])) {
if (req.headers['content-type'].toString() === 'application/x-www-url-form-encoded') {
if (req.headers['content-type'].toString() === 'application/x-www-form-urlencoded') {
res.writeHead(200)

@@ -54,0 +54,0 @@ res.end('Recieved valid data.')

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