mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 11:19:50 +08:00
Update api.ts to set proper header "Accept"
So it can work fine for some GPT forward service.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user