From 2fa3004d9e34cc4b77fbd6bd89a15957898e1363 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Wed, 16 Dec 2020 14:27:48 +0100 Subject: feat: support multipart uploads --- gitlab/v4/objects/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitlab/v4') diff --git a/gitlab/v4/objects/__init__.py b/gitlab/v4/objects/__init__.py index f42c60b..6184440 100644 --- a/gitlab/v4/objects/__init__.py +++ b/gitlab/v4/objects/__init__.py @@ -1615,7 +1615,7 @@ class GroupManager(CRUDMixin, RESTManager): Returns: dict: A representation of the import status. """ - files = {"file": ("file.tar.gz", file)} + files = {"file": ("file.tar.gz", file, "application/octet-stream")} data = {"path": path, "name": name} if parent_id is not None: data["parent_id"] = parent_id @@ -5488,8 +5488,8 @@ class ProjectManager(CRUDMixin, RESTManager): Returns: dict: A representation of the import status. """ - files = {"file": ("file.tar.gz", file)} - data = {"path": path, "overwrite": overwrite} + files = {"file": ("file.tar.gz", file, "application/octet-stream")} + data = {"path": path, "overwrite": str(overwrite)} if override_params: for k, v in override_params.items(): data["override_params[%s]" % k] = v -- cgit v1.2.1