From 7d55f9bc2ea2f0c242e6dd84e1a255996c94258c Mon Sep 17 00:00:00 2001 From: "Taylor Wilsdon (aider)" Date: Sun, 15 Dec 2024 18:54:05 -0500 Subject: [PATCH] fix: Adjust Google Drive file upload headers in processWeb call --- src/lib/components/chat/Chat.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 431fd30b6..e753a999b 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -362,7 +362,10 @@ try { files = [...files, fileItem]; - const res = await processWeb(localStorage.token, '', fileData.url, fileData.headers); + // Pass both URL and headers to processWeb + const res = await processWeb(localStorage.token, '', fileData.url, { + headers: fileData.headers + }); if (res) { fileItem.status = 'uploaded';