浏览代码

fix(Backend:http_executor): :wrench: prevent splitting JSON data as v… (#4276)

Patryk Garstecki 11 月之前
父节点
当前提交
2c1c660c6e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/core/workflow/nodes/http_request/http_executor.py

+ 1 - 1
api/core/workflow/nodes/http_request/http_executor.py

@@ -236,7 +236,7 @@ class HttpExecutor:
                 for kv in kv_paris:
                     if not kv.strip():
                         continue
-                    kv = kv.split(':')
+                    kv = kv.split(':', 1)
                     if len(kv) == 2:
                         body[kv[0].strip()] = kv[1]
                     elif len(kv) == 1: