Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 19c94dc

Browse files
committed
Handle invalid params a little better.
1 parent c183b8e commit 19c94dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

httpsig/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def parse_authorization_header(header):
7878
if '=' in item:
7979
# Split on the first '=' only.
8080
key, value = item.split('=', 1)
81-
81+
if not (len(key) and len(value)):
82+
continue
83+
8284
# Unquote values, if quoted.
8385
if value[0] == '"':
8486
value = value[1:-1]

0 commit comments

Comments
 (0)