From 1f454b577f7db434d79388eb101006b065f62a2b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 25 Dec 2014 16:10:47 +0100 Subject: web: CSP, revert functionality, serve content --- libmproxy/flow.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmproxy/flow.py') diff --git a/libmproxy/flow.py b/libmproxy/flow.py index bfd99c9c..58b4604c 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -584,6 +584,7 @@ class State(object): def revert(self, f): f.revert() + self.update_flow(f) def killall(self, master): self.flows.kill_all(master) @@ -821,6 +822,7 @@ class FlowMaster(controller.Master): if f.request.content == http.CONTENT_MISSING: return "Can't replay request with missing content..." if f.request: + f.backup() f.request.is_replay = True if f.request.content: f.request.headers["Content-Length"] = [str(len(f.request.content))] -- cgit v1.2.3