mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
fix(Backend:http_executor): 🔧 prevent splitting JSON data as v… (#4276)
This commit is contained in:
parent
13f4ed6e0e
commit
2c1c660c6e
|
@ -236,7 +236,7 @@ class HttpExecutor:
|
||||||
for kv in kv_paris:
|
for kv in kv_paris:
|
||||||
if not kv.strip():
|
if not kv.strip():
|
||||||
continue
|
continue
|
||||||
kv = kv.split(':')
|
kv = kv.split(':', 1)
|
||||||
if len(kv) == 2:
|
if len(kv) == 2:
|
||||||
body[kv[0].strip()] = kv[1]
|
body[kv[0].strip()] = kv[1]
|
||||||
elif len(kv) == 1:
|
elif len(kv) == 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user