mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-19 17:13:35 -04:00
fix: use uppercase HTTP methods
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ export class API {
|
||||
}
|
||||
|
||||
const fetchdata = await fetch(new URL(fetchpath).toString(), {
|
||||
method,
|
||||
method: method.toUpperCase(),
|
||||
headers: {
|
||||
...(config?.headers || {}),
|
||||
...(this.config.headers || {}),
|
||||
|
||||
Reference in New Issue
Block a user