From 85e00f4d2574ff2457f3de21dd3faf50db4ab74a Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 25 Jul 2017 13:22:43 -0700 Subject: [PATCH] Don't escape newlines in curl bodies --- src/targets/shell/curl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/shell/curl.js b/src/targets/shell/curl.js index bedbfcdc4..e8fd516fb 100644 --- a/src/targets/shell/curl.js +++ b/src/targets/shell/curl.js @@ -59,7 +59,7 @@ module.exports = function (source, options) { if (source.postData.text) { code.push( '%s %s', opts.binary ? '--data-binary' : (opts.short ? '-d' : '--data'), - helpers.escape(helpers.quote(source.postData.text)) + helpers.quote(source.postData.text) ) } }