We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5a93c commit cb437baCopy full SHA for cb437ba
flask_jwt_extended/view_decorators.py
@@ -183,7 +183,7 @@ def _decode_jwt_from_headers():
183
# <HeaderName>: <field> <value>, <field> <value>, etc...
184
if header_type:
185
field_values = split(r',\s*', auth_header)
186
- jwt_header = [s for s in field_values if s.startswith(header_type)]
+ jwt_header = [s for s in field_values if s.split()[0]==header_type]
187
if len(jwt_header) < 1:
188
msg = "Bad {} header. Expected value '{} <JWT>'".format(
189
header_name,
0 commit comments