mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
fix: when upload file response 3** will raise error (#9555)
This commit is contained in:
@@ -177,7 +177,7 @@ def _build_from_remote_url(
|
|||||||
url = mapping.get("url")
|
url = mapping.get("url")
|
||||||
if not url:
|
if not url:
|
||||||
raise ValueError("Invalid file url")
|
raise ValueError("Invalid file url")
|
||||||
resp = ssrf_proxy.head(url)
|
resp = ssrf_proxy.head(url, follow_redirects=True)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
|
|
||||||
# Try to extract filename from response headers or URL
|
# Try to extract filename from response headers or URL
|
||||||
|
|||||||
Reference in New Issue
Block a user