Comparing version 2.5.3 to 2.5.4
@@ -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.') |
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
12777