aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2019-11-15 19:04:14 +0100
committerGitHub <noreply@github.com>2019-11-15 19:04:14 +0100
commita79e0a0868f68aa0decaf2a67dd563c68cad8da9 (patch)
tree519ecde4c59585e2f25c3950b8ea88e2387760cd /mitmproxy
parentfbbbbb678e77e3cff5ab35b1fd55e85e875ed3f5 (diff)
parent50443df3404e660984c5bbfd999dc96d0bc9b1b2 (diff)
downloadmitmproxy-a79e0a0868f68aa0decaf2a67dd563c68cad8da9.tar.gz
mitmproxy-a79e0a0868f68aa0decaf2a67dd563c68cad8da9.tar.bz2
mitmproxy-a79e0a0868f68aa0decaf2a67dd563c68cad8da9.zip
Merge pull request #3522 from peter-way/master
Use 'host_header' instead of 'host', to calculate 'HTTPRequest' hash in transparent mode.
Diffstat (limited to 'mitmproxy')
-rw-r--r--mitmproxy/addons/serverplayback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/addons/serverplayback.py b/mitmproxy/addons/serverplayback.py
index 0818696f..18bc3545 100644
--- a/mitmproxy/addons/serverplayback.py
+++ b/mitmproxy/addons/serverplayback.py
@@ -135,7 +135,7 @@ class ServerPlayback:
key.append(str(r.raw_content))
if not ctx.options.server_replay_ignore_host:
- key.append(r.host)
+ key.append(r.pretty_host)
if not ctx.options.server_replay_ignore_port:
key.append(r.port)