diff --git a/api/core/workflow/nodes/http_request/executor.py b/api/core/workflow/nodes/http_request/executor.py index 2c83b00d4a..43b1d12d3d 100644 --- a/api/core/workflow/nodes/http_request/executor.py +++ b/api/core/workflow/nodes/http_request/executor.py @@ -225,7 +225,7 @@ class Executor: files: dict[str, list[tuple[str | None, bytes, str]]] = {} for key, files_in_segment in files_list: for file in files_in_segment: - if file.related_id is not None: + if file.related_id is not None or file.transfer_method == 'remote_url': file_tuple = ( file.filename, file_manager.download(file), @@ -390,7 +390,7 @@ class Executor: body_string += content.decode("utf-8") except UnicodeDecodeError: # fix: decode binary content - pass + body_string += f"[Binary data of {len(content)} bytes]" body_string += "\r\n" body_string += f"--{boundary}--\r\n" elif self.node_data.body: