aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/models/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/models/http.py')
-rw-r--r--mitmproxy/models/http.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/mitmproxy/models/http.py b/mitmproxy/models/http.py
index 5d79306b..0338945b 100644
--- a/mitmproxy/models/http.py
+++ b/mitmproxy/models/http.py
@@ -2,7 +2,6 @@ from __future__ import (absolute_import, print_function, division)
import Cookie
import copy
import warnings
-import base64
from email.utils import parsedate_tz, formatdate, mktime_tz
import time
@@ -194,8 +193,7 @@ class HTTPRequest(MessageMixin, Request):
return id(self)
def set_auth(self, auth):
- auth_str = "Basic" + " " + base64.b64encode(auth)
- self.data.headers.set_all("Proxy-Authorization", (auth_str,))
+ self.data.headers.set_all("Proxy-Authorization", (auth,))
def replace(self, pattern, repl, *args, **kwargs):
"""