소스 검색

Fix: http_request delete method not working (#4975)

th3n00b13 1 년 전
부모
커밋
cdb6c801c1
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      api/core/workflow/nodes/http_request/http_executor.py

+ 4 - 1
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]:
         """