Timothy Jaeryang Baek 1 month ago
parent
commit
0214c1e66c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/open_webui/retrieval/web/utils.py

+ 1 - 0
backend/open_webui/retrieval/web/utils.py

@@ -517,6 +517,7 @@ class SafeWebBaseLoader(WebBaseLoader):
                     async with session.get(
                         url,
                         **(self.requests_kwargs | kwargs),
+                        allow_redirects=False,
                     ) as response:
                         if self.raise_for_status:
                             response.raise_for_status()