Skip to content

Commit

Permalink
fix: download some remote files raise error (#10781)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored Nov 19, 2024
1 parent 6f4885d commit 904ea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/console/remote_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def post(self):

resp = ssrf_proxy.head(url=url)
if resp.status_code != httpx.codes.OK:
resp = ssrf_proxy.get(url=url, timeout=3)
resp = ssrf_proxy.get(url=url, timeout=3, follow_redirects=True)
resp.raise_for_status()

file_info = helpers.guess_file_info_from_response(resp)
Expand Down

0 comments on commit 904ea05

Please sign in to comment.