mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Use 'host_header' instead of 'host', when calculating 'HTTPRequest' hash in transparent mode.
This commit is contained in:
parent
8353f4a55a
commit
141ade5ae1
@ -128,7 +128,10 @@ class ServerPlayback:
|
||||
key.append(str(r.raw_content))
|
||||
|
||||
if not ctx.options.server_replay_ignore_host:
|
||||
key.append(r.host)
|
||||
if ctx.options.mode == "transparent":
|
||||
key.append(r.host_header)
|
||||
else:
|
||||
key.append(r.host)
|
||||
|
||||
filtered = []
|
||||
ignore_params = ctx.options.server_replay_ignore_params or []
|
||||
|
Loading…
Reference in New Issue
Block a user