Skip to content

Commit 0aef325

Browse files
committed
Fixed leading space in header value
1 parent 6d13e99 commit 0aef325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

human_curl/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ def parse_header_block(raw_block):
746746
if not header:
747747
continue
748748
elif not header.startswith("HTTP"):
749-
field, value = header.split(":", 1)
749+
field, value = map(lambda u: u.strip(), header.split(":", 1))
750750
if field.startswith("Location"):
751751
# maybe not good
752752
if not value.startswith("http"):

0 commit comments

Comments
 (0)