mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 00:45:53 +08:00
fix: incorrect handling when http header value contain multiple colons. (#4574)
This commit is contained in:
parent
ad620f02c7
commit
109aabc6f2
@ -160,7 +160,9 @@ class HttpExecutor:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
kv = kv.split(':', maxsplit=maxsplit)
|
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
|
k, v = kv
|
||||||
elif len(kv) == 1:
|
elif len(kv) == 1:
|
||||||
k, v = kv[0], ''
|
k, v = kv[0], ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user