mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
web: CSP, revert functionality, serve content
This commit is contained in:
@@ -88,6 +88,11 @@ class Flow(stateobject.StateObject):
|
||||
def get_state(self, short=False):
|
||||
d = super(Flow, self).get_state(short)
|
||||
d.update(version=version.IVERSION)
|
||||
if self._backup and self._backup != d:
|
||||
if short:
|
||||
d.update(modified=True)
|
||||
else:
|
||||
d.update(backup=self._backup)
|
||||
return d
|
||||
|
||||
def __eq__(self, other):
|
||||
|
||||
Reference in New Issue
Block a user