the strip() isnt needed

This commit is contained in:
fpghost 2018-12-04 10:57:51 +01:00
parent 886513c375
commit d7c8eee2fc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class HttpProxyMiddleware(object):
user_pass = to_bytes(
'%s:%s' % (unquote(username), unquote(password)),
encoding=self.auth_encoding)
return base64.b64encode(user_pass).strip()
return base64.b64encode(user_pass)
def _get_proxy(self, url, orig_type):
proxy_type, user, password, hostport = _parse_proxy(url)