mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-15 05:23:42 +08:00
fix: upload error
This commit is contained in:
@@ -230,10 +230,13 @@ export class ClientApi {
|
|||||||
export function getHeaders(ignoreHeaders?: boolean) {
|
export function getHeaders(ignoreHeaders?: boolean) {
|
||||||
const accessStore = useAccessStore.getState();
|
const accessStore = useAccessStore.getState();
|
||||||
const chatStore = useChatStore.getState();
|
const chatStore = useChatStore.getState();
|
||||||
const headers: Record<string, string> = {
|
let headers: Record<string, string> = {};
|
||||||
"Content-Type": "application/json",
|
if (!ignoreHeaders) {
|
||||||
Accept: "application/json",
|
headers = {
|
||||||
};
|
"Content-Type": "application/json",
|
||||||
|
Accept: "application/json",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const clientConfig = getClientConfig();
|
const clientConfig = getClientConfig();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user