Skip to content

Commit

Permalink
Fix: http_request delete method not working (#4975)
Browse files Browse the repository at this point in the history
  • Loading branch information
th3n00b13 authored Jun 14, 2024
1 parent 511ead4 commit cdb6c80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/core/workflow/nodes/http_request/http_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def is_file(self) -> bool:
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]:
"""
Expand Down

0 comments on commit cdb6c80

Please sign in to comment.