Skip to content

Commit 11fa920

Browse files
committed
Merge branch 'erik/realm-parsing' of https://github.com/erikvanzijst/python-oauth2
2 parents 3fe8a1a + 96f7be0 commit 11fa920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth10a/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _split_header(header):
629629
parts = header.split(',')
630630
for param in parts:
631631
# Ignore realm parameter.
632-
if param.find('realm') > -1:
632+
if param.lower().startswith('realm='):
633633
continue
634634
# Remove whitespace.
635635
param = param.strip()

0 commit comments

Comments
 (0)