Commit 04a4e1a3 authored by Łukasz Nowak's avatar Łukasz Nowak

Compare case insensitive.

parent 1badc9c7
...@@ -152,7 +152,7 @@ class ERP5ExternalOauth2ExtractionPlugin: ...@@ -152,7 +152,7 @@ class ERP5ExternalOauth2ExtractionPlugin:
token = None token = None
if request._auth is not None: if request._auth is not None:
# 1st - try to fetch from Authorization header # 1st - try to fetch from Authorization header
if self.header_string in request._auth.lower(): if self.header_string.lower() in request._auth.lower():
l = request._auth.split() l = request._auth.split()
if len(l) == 2: if len(l) == 2:
token = l[1] token = l[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment