httpsnippet
Advanced tools
Comparing version 1.19.0 to 1.19.1
{ | ||
"version": "1.19.0", | ||
"version": "1.19.1", | ||
"name": "httpsnippet", | ||
@@ -4,0 +4,0 @@ "description": "HTTP Request snippet generator for *most* languages", |
@@ -29,3 +29,3 @@ /** | ||
// Construct query string | ||
if (source.queryString.length) { | ||
if (Object.keys(source.queryObj).length) { | ||
var qs = 'querystring = ' + JSON.stringify(source.queryObj) | ||
@@ -32,0 +32,0 @@ |
@@ -68,3 +68,3 @@ /** | ||
'%s %s', opts.binary ? '--data-binary' : (opts.short ? '-d' : '--data'), | ||
helpers.escape(helpers.quote(source.postData.text)) | ||
helpers.quote(source.postData.text) | ||
) | ||
@@ -79,3 +79,3 @@ } | ||
'%s %s', opts.binary ? '--data-binary' : (opts.short ? '-d' : '--data'), | ||
helpers.escape(helpers.quote(source.postData.text)) | ||
helpers.quote(source.postData.text) | ||
) | ||
@@ -82,0 +82,0 @@ } |
103011