From ffcbd46e49b1f829139e808be6598e213ead4352 Mon Sep 17 00:00:00 2001 From: Filippo Cremonese <filippocremonese@rev.ng> Date: Thu, 17 Sep 2020 18:07:27 +0200 Subject: [PATCH] UTF-8 encode required to base64 encode --- orchestra/git_lfs/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orchestra/git_lfs/__init__.py b/orchestra/git_lfs/__init__.py index 40d735b..d7c7001 100644 --- a/orchestra/git_lfs/__init__.py +++ b/orchestra/git_lfs/__init__.py @@ -24,6 +24,10 @@ def urlretrieve(url, data=None, headers=None): scheme, netloc, path, params, query, frag = urlparse(url) auth, host = splituser(netloc) if auth: + try: + auth = auth.encode("utf-8") + except: + pass url = urlunparse((scheme, host, path, params, query, frag)) req = Request(url, data, headers) base64string = base64.encodestring(auth)[:-1] -- GitLab