We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5fda70 commit 921294cCopy full SHA for 921294c
1 file changed
ayon_api/server_api.py
@@ -1408,7 +1408,10 @@ def _download_file_to_stream(
1408
try:
1409
with get_func(url, **kwargs) as response:
1410
# Auto-fix missing 'api/'
1411
- if response.status_code == 404 and not api_prepended:
+ if (
1412
+ response.status_code in (404, 405)
1413
+ and not api_prepended
1414
+ ):
1415
api_prepended = True
1416
if (
1417
not endpoint.startswith(self._base_url)
@@ -1841,7 +1844,7 @@ def _upload_file(
1841
1844
**kwargs
1842
1845
)
1843
1846
- if response.status_code == 405 and not api_prepended:
1847
+ if response.status_code in (404, 405) and not api_prepended:
1848
1849
1850
0 commit comments