This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new bf09675 Fixed proxy related bugs
bf09675 is described below
commit bf0967537bdf189a8806fe05a2710e1011370956
Author: くらげ <[email protected]>
AuthorDate: Sun Jul 25 23:46:42 2021 +0900
Fixed proxy related bugs
---
lib/py/src/transport/THttpClient.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/py/src/transport/THttpClient.py
b/lib/py/src/transport/THttpClient.py
index 212da3a..b131690 100644
--- a/lib/py/src/transport/THttpClient.py
+++ b/lib/py/src/transport/THttpClient.py
@@ -98,7 +98,7 @@ class THttpClient(TTransportBase):
return None
ap = "%s:%s" % (urllib.parse.unquote(proxy.username),
urllib.parse.unquote(proxy.password))
- cr = base64.b64encode(ap).strip()
+ cr = base64.b64encode(ap.encode()).strip()
return "Basic " + cr
def using_proxy(self):