We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929a1e7 commit f6f1cf8Copy full SHA for f6f1cf8
1 file changed
ayon_api/server_api.py
@@ -1408,7 +1408,7 @@ 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 response.status_code == 404 and not api_prepended:
1412
api_prepended = True
1413
if (
1414
not endpoint.startswith(self._base_url)
@@ -1838,7 +1838,7 @@ def _upload_file(
1838
**kwargs
1839
)
1840
1841
- if response.status_code in (404, 405) and not api_prepended:
+ if response.status_code in 405 and not api_prepended:
1842
1843
1844
0 commit comments