We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbf1ae commit bb66715Copy full SHA for bb66715
dyn/core.py
@@ -185,9 +185,9 @@ def connect(self):
185
use_proxy = True
186
187
if self.proxy_user and self.proxy_pass:
188
- auth = '{}:{}'.format(self.proxy_user, self.proxy_pass)
189
- headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(
190
- auth)
+ auth = '{}:{}'.format(self.proxy_user, self.proxy_pass).encode()
+ headers['Proxy-Authorization'] = 'Basic ' + str(base64.b64encode(
+ auth))
191
192
if use_proxy:
193
if self.ssl:
0 commit comments