Use 'host_header' instead of 'host', when calculating 'HTTPRequest' hash in transparent mode.

This commit is contained in:
peter-way 2019-04-15 08:43:52 +08:00
parent 8353f4a55a
commit 141ade5ae1

View File

@ -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 []