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: optional parameter missing default value None in http request node (#5413)

takatosta88aa208248e
diff --git a/api/core/workflow/nodes/http_request/entities.py b/api/core/workflow/nodes/http_request/entities.py
index c027f9fd29b..00d72a8b0ac 100644
--- a/api/core/workflow/nodes/http_request/entities.py
+++ b/api/core/workflow/nodes/http_request/entities.py
@@ -22,7 +22,7 @@ class HttpRequestNodeData(BaseNodeData):
header: Union[None, str] = None
type: Literal['no-auth', 'api-key']
- config: Optional[Config]
+ config: Optional[Config] = None
@field_validator('config', mode='before')
@classmethod
@@ -52,6 +52,6 @@ class HttpRequestNodeData(BaseNodeData):
authorization: Authorization
headers: str
params: str
- body: Optional[Body]
+ body: Optional[Body] = None
timeout: Optional[Timeout] = None
mask_authorization_header: Optional[bool] = True