From 8f2b691ee08fdec5403c7f707a4912ef0d9e193c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 26 Dec 2023 13:43:32 -0800 Subject: [PATCH] fix: headers issue --- backend/apps/ollama/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/apps/ollama/main.py b/backend/apps/ollama/main.py index 532f3fbfa..53de123a9 100644 --- a/backend/apps/ollama/main.py +++ b/backend/apps/ollama/main.py @@ -61,10 +61,10 @@ def proxy(path): r = None - del headers["Host"] - del headers["Authorization"] - del headers["Origin"] - del headers["Referer"] + headers.pop("Host", None) + headers.pop("Authorization", None) + headers.pop("Origin", None) + headers.pop("Referer", None) print(headers)