From 25b78dfa6ed9da1f918d731ae8da9469d7b65a26 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 4 Mar 2018 23:36:49 +0100 Subject: Copy as cURL (PATCH) Issue #44 --- devtools/client/shared/curl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devtools/client/shared') diff --git a/devtools/client/shared/curl.js b/devtools/client/shared/curl.js index 45122be376..420fe6aa5c 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))); -- cgit v1.2.3