Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12870e6

Browse files
committed
Minor fix
1 parent 793a8ad commit 12870e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def _setHTTPExtraHeaders():
12001200
conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n")
12011201

12021202
for headerValue in conf.headers:
1203-
if headerValue.count(':') > 1:
1203+
if headerValue.count(':') >= 1:
12041204
header, value = (_.lstrip() for _ in headerValue.split(":", 1))
12051205

12061206
if header and value:

0 commit comments

Comments
 (0)