fix: incorrect handling when http header value contain multiple colons. (#4574)

pull/4662/head
10YearsDiary 2 years ago committed by GitHub
parent ad620f02c7
commit 109aabc6f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -160,7 +160,9 @@ class HttpExecutor:
continue
kv = kv.split(':', maxsplit=maxsplit)
if len(kv) == 2:
if len(kv) >= 3:
k, v = kv[0], ":".join(kv[1:])
elif len(kv) == 2:
k, v = kv
elif len(kv) == 1:
k, v = kv[0], ''

Loading…
Cancel
Save