aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols/http2.py
diff options
context:
space:
mode:
authorNikhil Soni <krsoninikhil@gmail.com>2017-03-03 12:58:44 +0530
committerGitHub <noreply@github.com>2017-03-03 12:58:44 +0530
commit0081d9b82807b178bd6d00ca250d38aeeeed2d33 (patch)
tree8d244a7b9ade13f0e1836f8eb9fbc534a1cc662d /pathod/protocols/http2.py
parent3da8532bed3305b01e3f3ab556f9dbc652177c6b (diff)
parentbae4cdf8d5cc434938c74a041f762075513dd8e4 (diff)
downloadmitmproxy-0081d9b82807b178bd6d00ca250d38aeeeed2d33.tar.gz
mitmproxy-0081d9b82807b178bd6d00ca250d38aeeeed2d33.tar.bz2
mitmproxy-0081d9b82807b178bd6d00ca250d38aeeeed2d33.zip
Merge branch 'master' into on-issues
Diffstat (limited to 'pathod/protocols/http2.py')
-rw-r--r--pathod/protocols/http2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py
index 628e3f33..7c88c5c7 100644
--- a/pathod/protocols/http2.py
+++ b/pathod/protocols/http2.py
@@ -172,9 +172,9 @@ class HTTP2StateProtocol:
def assemble_request(self, request):
assert isinstance(request, mitmproxy.net.http.request.Request)
- authority = self.tcp_handler.sni if self.tcp_handler.sni else self.tcp_handler.address.host
- if self.tcp_handler.address.port != 443:
- authority += ":%d" % self.tcp_handler.address.port
+ authority = self.tcp_handler.sni if self.tcp_handler.sni else self.tcp_handler.address[0]
+ if self.tcp_handler.address[1] != 443:
+ authority += ":%d" % self.tcp_handler.address[1]
headers = request.headers.copy()