summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/curl.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-04 23:36:49 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-04 23:36:49 +0100
commit25b78dfa6ed9da1f918d731ae8da9469d7b65a26 (patch)
tree18f5d4fc4a51f2d919f5a8c56e39706138b165e7 /devtools/client/shared/curl.js
parentf6e7a511bc39106c1bb0f9461d1eb23564c10c8b (diff)
downloadUXP-25b78dfa6ed9da1f918d731ae8da9469d7b65a26.tar
UXP-25b78dfa6ed9da1f918d731ae8da9469d7b65a26.tar.gz
UXP-25b78dfa6ed9da1f918d731ae8da9469d7b65a26.tar.lz
UXP-25b78dfa6ed9da1f918d731ae8da9469d7b65a26.tar.xz
UXP-25b78dfa6ed9da1f918d731ae8da9469d7b65a26.zip
Copy as cURL (PATCH)
Issue #44
Diffstat (limited to 'devtools/client/shared/curl.js')
-rw-r--r--devtools/client/shared/curl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/client/shared/curl.js b/devtools/client/shared/curl.js
index 45122be37..420fe6aa5 100644
--- a/devtools/client/shared/curl.js
+++ b/devtools/client/shared/curl.js
@@ -77,7 +77,7 @@ const Curl = {
// Create post data.
let postData = [];
if (utils.isUrlEncodedRequest(data) ||
- ["PUT", "POST"].includes(data.method)) {
+ ["PUT", "POST", "PATCH"].includes(data.method)) {
postDataText = data.postDataText;
postData.push("--data");
postData.push(escapeString(utils.writePostDataTextParams(postDataText)));