We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b0c965 + 921294c commit 404b60eCopy full SHA for 404b60e
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 == 405 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
1847
+ if response.status_code in (404, 405) and not api_prepended:
1848
1849
1850
0 commit comments