Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8f2b691e
Commit
8f2b691e
authored
Dec 26, 2023
by
Timothy J. Baek
Browse files
fix: headers issue
parent
0ae57b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+4
-4
No files found.
backend/apps/ollama/main.py
View file @
8f2b691e
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment