Skip to content

Commit d8226e6

Browse files
committed
small fixes
1 parent 62bda41 commit d8226e6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ayon_api/server_api.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -2121,9 +2121,6 @@ def download_file_to_stream(
21212121
if not chunk_size:
21222122
chunk_size = self.default_download_chunk_size
21232123

2124-
if endpoint.startswith(self._base_url):
2125-
url = endpoint
2126-
21272124
url = self._endpoint_to_url(endpoint)
21282125

21292126
if progress is None:
@@ -2270,7 +2267,7 @@ def _upload_file(
22702267
return response
22712268

22722269
def upload_file_from_stream(
2273-
self, endpoint, stream, progress, request_type, **kwargs
2270+
self, endpoint, stream, progress=None, request_type=None, **kwargs
22742271
):
22752272
"""Upload file to server from bytes.
22762273

0 commit comments

Comments
 (0)