fix: missing 'follow_redirects' argument while download plugin packages

This commit is contained in:
Yeuoly
2024-11-01 15:38:45 +08:00
parent f1f1baae9c
commit 8070be9b76
2 changed files with 2 additions and 4 deletions

View File

@ -2,7 +2,7 @@ from core.helper import ssrf_proxy
def download_with_size_limit(url, max_download_size: int, **kwargs):
response = ssrf_proxy.get(url, **kwargs)
response = ssrf_proxy.get(url, follow_redirects=True, **kwargs)
if response.status_code == 404:
raise ValueError("file not found")