Explorar o código

Merge pull request #1 from Rocky0102/Rocky0102-patch-proper-accept-header

Update api.ts to set proper header "Accept"
Rocky %!s(int64=2) %!d(string=hai) anos
pai
achega
8efe26ed57
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/client/api.ts

+ 1 - 0
app/client/api.ts

@@ -130,6 +130,7 @@ export function getHeaders() {
   const headers: Record<string, string> = {
     "Content-Type": "application/json",
     "x-requested-with": "XMLHttpRequest",
+    "Accept": "application/json",
   };
 
   const isAzure = accessStore.provider === ServiceProvider.Azure;