Skip to content

Commit 8e67ad2

Browse files
http: fix PATCH
"If you want to use a custom method (like PATCH), you should uppercase it yourself." https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
1 parent fffcb78 commit 8e67ad2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli-core/lib/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default (device, logger) => {
4848
};
4949

5050
const request = async (method, uri, options) => {
51-
const resp = await baseRequest(method, uri, options);
51+
const resp = await baseRequest(method.toUpperCase(), uri, options);
5252
const type = resp.headers.get('content-type');
5353
const encoding = resp.headers.get('transfer-encoding');
5454

0 commit comments

Comments
 (0)