소스 검색

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

Update api.ts to set proper header "Accept"
Rocky 1 년 전
부모
커밋
8efe26ed57
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;