@ossiana/node-libcurl
Advanced tools
Comparing version
@@ -152,3 +152,3 @@ "use strict"; | ||
} | ||
if (httpVersion) { | ||
if (typeof httpVersion != 'undefined') { | ||
curl.setHttpVersion(httpVersion); | ||
@@ -190,5 +190,8 @@ } | ||
} | ||
else { | ||
curl.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); | ||
} | ||
} | ||
if (typeof data == 'object' && data != null) { | ||
curl.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); | ||
if (!(data instanceof URLSearchParams) && | ||
typeof data == 'object' && data != null) { | ||
sendData = Object.keys(data).map((e) => { | ||
@@ -195,0 +198,0 @@ const value = data[e]; |
@@ -64,3 +64,3 @@ "use strict"; | ||
name: key, | ||
value, | ||
value: decodeURIComponent(value), | ||
domain, | ||
@@ -67,0 +67,0 @@ path: '/', |
{ | ||
"name": "@ossiana/node-libcurl", | ||
"version": "1.1.0-alpha-5", | ||
"version": "1.1.1-alpha-1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@mapbox/node-pre-gyp": "^1.0.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
315503
0.08%771
0.39%