Skip to content

Commit

Permalink
minor fixes and enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrufesh committed Oct 10, 2023
1 parent 2a7cf70 commit bd03fcc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions accli/AcceleratorProjectService.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_put_create_multipart_upload_id(self, filename):
def get_put_update_multipart_upload_id(self, bucket_object_id):
res = self.http_client_request(
"GET",
f"{self.cli_base_url}/create-multipart-upload-id/{bucket_object_id}",
f"{self.cli_base_url}/update-multipart-upload-id/{bucket_object_id}",
headers=self.common_request_headers
)

Expand Down Expand Up @@ -182,7 +182,7 @@ def complete_update_multipart_upload(
json=dict(
bucket_object_id=bucket_object_id,
upload_id=upload_id,
parts=base64.b64encode(json.dumps(parts))
parts=base64.b64encode(json.dumps(parts).encode()).decode()
),
headers=headers
)
Expand All @@ -206,7 +206,9 @@ def abort_create_multipart_upload(self, app_bucket_id, filename, upload_id):

def abort_update_multipart_upload(self, bucket_object_id, upload_id):

headers = {"Content-Type": "application/json"}
headers = {
# "Content-Type": "application/json"
}

headers.update(self.common_request_headers)

Expand Down

0 comments on commit bd03fcc

Please sign in to comment.