Browse Source

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

Patryk Garstecki 11 tháng trước cách đây
mục cha
commit
2c1c660c6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: