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
366679ff
Commit
366679ff
authored
Feb 24, 2024
by
Timothy J. Baek
Browse files
fix: 'dict' object issue
parent
1d3fadb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
backend/utils/utils.py
backend/utils/utils.py
+1
-4
No files found.
backend/utils/utils.py
View file @
366679ff
...
@@ -61,10 +61,7 @@ def extract_token_from_auth_header(auth_header: str):
...
@@ -61,10 +61,7 @@ def extract_token_from_auth_header(auth_header: str):
def
get_http_authorization_cred
(
auth_header
:
str
):
def
get_http_authorization_cred
(
auth_header
:
str
):
try
:
try
:
scheme
,
credentials
=
auth_header
.
split
(
" "
)
scheme
,
credentials
=
auth_header
.
split
(
" "
)
return
{
return
HTTPAuthorizationCredentials
(
scheme
=
scheme
,
credentials
=
credentials
)
"scheme"
:
scheme
,
"credentials"
:
credentials
,
}
except
:
except
:
raise
ValueError
(
ERROR_MESSAGES
.
INVALID_TOKEN
)
raise
ValueError
(
ERROR_MESSAGES
.
INVALID_TOKEN
)
...
...
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