Skip to content

Commit b687aa1

Browse files
committed
fix condition
1 parent f6f1cf8 commit b687aa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ayon_api/server_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def _upload_file(
18381838
**kwargs
18391839
)
18401840
# Auto-fix missing 'api/'
1841-
if response.status_code in 405 and not api_prepended:
1841+
if response.status_code == 405 and not api_prepended:
18421842
api_prepended = True
18431843
if (
18441844
not endpoint.startswith(self._base_url)

0 commit comments

Comments
 (0)