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 delete method not working (#4975)

th3n00b13cdb6c801c10f
diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py
index 10002216f1f..74a6c5b9de6 100644
--- a/api/core/workflow/nodes/http_request/http_executor.py
+++ b/api/core/workflow/nodes/http_request/http_executor.py
@@ -42,7 +42,10 @@ class HttpExecutorResponse:
return any(v in content_type for v in file_content_types)
def get_content_type(self) -> str:
- return self.headers.get('content-type')
+ if 'content-type' in self.headers:
+ return self.headers.get('content-type')
+ else:
+ return self.headers.get('Content-Type') or ""
def extract_file(self) -> tuple[str, bytes]:
"""