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

Update api.ts to set proper header "Accept"
This commit is contained in:
Rocky 2023-12-18 20:36:59 +08:00 committed by GitHub
commit 8efe26ed57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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