ソースを参照

fix: download some remote files raise error (#10781)

tags/0.12.0
非法操作 11ヶ月前
コミット
904ea05bf6
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      api/controllers/console/remote_files.py

+ 1
- 1
api/controllers/console/remote_files.py ファイルの表示

@@ -45,7 +45,7 @@ class RemoteFileUploadApi(Resource):

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)

読み込み中…
キャンセル
保存