Skip to content

Commit ff72813

Browse files
committed
Fixed to split Authorization header only once:
To avoid IndexError
1 parent d9033bd commit ff72813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _extract_basic_auth(self, request):
3535
if not auth:
3636
return None
3737

38-
auth_type, auth_string = auth.split(' ')
38+
auth_type, auth_string = auth.split(' ', 1)
3939
if auth_type != "Basic":
4040
return None
4141

0 commit comments

Comments
 (0)