Skip to content

Commit f6f1cf8

Browse files
committed
correct the statuses
1 parent 929a1e7 commit f6f1cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ayon_api/server_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ def _download_file_to_stream(
14081408
try:
14091409
with get_func(url, **kwargs) as response:
14101410
# Auto-fix missing 'api/'
1411-
if response.status_code == 405 and not api_prepended:
1411+
if response.status_code == 404 and not api_prepended:
14121412
api_prepended = True
14131413
if (
14141414
not endpoint.startswith(self._base_url)
@@ -1838,7 +1838,7 @@ def _upload_file(
18381838
**kwargs
18391839
)
18401840
# Auto-fix missing 'api/'
1841-
if response.status_code in (404, 405) and not api_prepended:
1841+
if response.status_code in 405 and not api_prepended:
18421842
api_prepended = True
18431843
if (
18441844
not endpoint.startswith(self._base_url)

0 commit comments

Comments
 (0)