Sfoglia il codice sorgente

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

tags/0.10.0
非法操作 1 anno fa
parent
commit
a5777683f3
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/factories/file_factory.py

+ 1
- 1
api/factories/file_factory.py Vedi File

@@ -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

Loading…
Annulla
Salva