diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index e753a999b..431fd30b6 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -362,10 +362,7 @@ try { files = [...files, fileItem]; - // Pass both URL and headers to processWeb - const res = await processWeb(localStorage.token, '', fileData.url, { - headers: fileData.headers - }); + const res = await processWeb(localStorage.token, '', fileData.url, fileData.headers); if (res) { fileItem.status = 'uploaded'; diff --git a/src/lib/utils/google-drive-picker.ts b/src/lib/utils/google-drive-picker.ts index 7418459e3..1c6bef977 100644 --- a/src/lib/utils/google-drive-picker.ts +++ b/src/lib/utils/google-drive-picker.ts @@ -126,7 +126,8 @@ export const createPicker = () => { name: fileName, url: downloadUrl, headers: { - 'Authorization': `Bearer ${oauthToken}` + 'Authorization': `Bearer ${oauthToken}`, + 'Content-Type': 'application/json' } }; console.log('Resolving picker with:', result);