浏览代码

fix: when upload file response 3** will raise error (#9555)

tags/0.10.0
非法操作 1年前
父节点
当前提交
a5777683f3
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/factories/file_factory.py

+ 1
- 1
api/factories/file_factory.py 查看文件

@@ -177,7 +177,7 @@ def _build_from_remote_url(
url = mapping.get("url")
if not url:
raise ValueError("Invalid file url")
resp = ssrf_proxy.head(url)
resp = ssrf_proxy.head(url, follow_redirects=True)
resp.raise_for_status()

# Try to extract filename from response headers or URL

正在加载...
取消
保存