fix: use uppercase HTTP methods

This commit is contained in:
izzy
2025-04-04 15:58:59 +01:00
parent c2c0a81996
commit 85295be38e
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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 || {}),