We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3184f2 commit d087fe5Copy full SHA for d087fe5
src/rest/APIRequest.js
@@ -144,7 +144,7 @@ class APIRequest {
144
const controller = new AbortController();
145
const timeout = setTimeout(() => controller.abort(), this.client.options.restRequestTimeout).unref();
146
return fetch(url, {
147
- method: this.method,
+ method: this.method.toUpperCase(), // Undici doesn't normalize "patch" into "PATCH" (which surprisingly follows the spec).
148
headers,
149
agent,
150
body,
0 commit comments