Skip to content

Commit

Permalink
chore: allow download audio/video through HTTP node (langgenius#7224)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored and cuiks committed Sep 2, 2024
1 parent 7f520f7 commit b1a52f8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/core/workflow/nodes/http_request/http_request_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ def extract_files(self, url: str, response: HttpExecutorResponse) -> list[FileVa
"""
files = []
mimetype, file_binary = response.extract_file()
# if not image, return directly
if 'image' not in mimetype:
return files

if mimetype:
# extract filename from url
Expand Down

0 comments on commit b1a52f8

Please sign in to comment.