We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5f572d + 8a3aa2e commit 2aadcecCopy full SHA for 2aadcec
1 file changed
dist/targets/shell/curl/client.js
@@ -169,12 +169,16 @@ exports.curl = {
169
else {
170
push("".concat(binary ? '--data-binary' : arg('data'), " ").concat((0, shell_1.quote)(postData.text)));
171
}
172
+
173
+ if (method === 'PUT') {
174
+ push("".concat("-X", " PUT"));
175
+ }
176
break;
177
default: {
178
// raw request body
179
if (!postData.text) {
- if (method === 'POST') {
- push("".concat("-X", " POST"));
180
+ if (['POST', 'PUT'].includes(method)) {
181
+ push("".concat("-X", ` ${method}`));
182
183
184
0 commit comments