Skip to content

Commit

Permalink
Merge pull request #7 from matandd/patch-1
Browse files Browse the repository at this point in the history
requests tries to decode non-binary files
  • Loading branch information
rvojcik committed Jun 23, 2020
2 parents 51d9a32 + 6c190fb commit 9506e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __api_import(self, project_name, namespace, filename):
return requests.post(
self.api_url + "/projects/import",
data=data,
files={"file": open(filename, 'r')},
files={"file": open(filename, 'rb')},
headers=self.headers)
except requests.exceptions.RequestException as e:
print(e, file=sys.stderr)
Expand Down

0 comments on commit 9506e51

Please sign in to comment.