diff options
author | Max Wittig <max.wittig@siemens.com> | 2020-12-16 14:27:48 +0100 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2021-01-28 08:46:51 +0100 |
commit | 2fa3004d9e34cc4b77fbd6bd89a15957898e1363 (patch) | |
tree | 79b0127e030c30b919b02facd1d6bccfe49d7f0b /gitlab/v4 | |
parent | fd179d4f88bf0707ef44fd5e3e007725a0331696 (diff) | |
download | gitlab-feat/multipart-uploads.tar.gz |
feat: support multipart uploadsfeat/multipart-uploads
Diffstat (limited to 'gitlab/v4')
-rw-r--r-- | gitlab/v4/objects/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |