diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-15 19:12:15 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-15 19:12:15 +0200 |
commit | 11e7f476bd4bbcd6d072fa3659f628ae3a19705d (patch) | |
tree | 7fe3f67bcf41af6c573e312ef4e6adfa18f9f870 /netlib/http/authentication.py | |
parent | 2f9c566e480c377566a0ae044d698a75b45cd54c (diff) | |
download | mitmproxy-11e7f476bd4bbcd6d072fa3659f628ae3a19705d.tar.gz mitmproxy-11e7f476bd4bbcd6d072fa3659f628ae3a19705d.tar.bz2 mitmproxy-11e7f476bd4bbcd6d072fa3659f628ae3a19705d.zip |
wip
Diffstat (limited to 'netlib/http/authentication.py')
-rw-r--r-- | netlib/http/authentication.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/authentication.py b/netlib/http/authentication.py index fe1f0d14..2055f843 100644 --- a/netlib/http/authentication.py +++ b/netlib/http/authentication.py @@ -19,8 +19,8 @@ def parse_http_basic_auth(s): def assemble_http_basic_auth(scheme, username, password): - v = binascii.b2a_base64(username + ":" + password) - return scheme + " " + v + v = binascii.b2a_base64(username + b":" + password) + return scheme + b" " + v class NullProxyAuth(object): |