Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix HTTP REQUEST NODE is always waiting but endpoint have responsed (#4395)

非法操作1d0f88264f5a
diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py
index 97cb59d02d0..2aa79f51ace 100644
--- a/api/core/workflow/nodes/http_request/http_executor.py
+++ b/api/core/workflow/nodes/http_request/http_executor.py
@@ -25,7 +25,10 @@ class HttpExecutorResponse:
response: Union[httpx.Response, requests.Response]
def __init__(self, response: Union[httpx.Response, requests.Response] = None):
- self.headers = response.headers
+ self.headers = {}
+ if isinstance(response, httpx.Response | requests.Response):
+ for k, v in response.headers.items():
+ self.headers[k] = v
self.response = response
@property