diff options
-rw-r--r-- | mitmproxy/contentviews.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mitmproxy/contentviews.py b/mitmproxy/contentviews.py index 64c2e6c1..7c9e4ba1 100644 --- a/mitmproxy/contentviews.py +++ b/mitmproxy/contentviews.py @@ -323,7 +323,10 @@ if pyamf: prompt = ("amf", "f") content_types = ["application/x-amf"] - def unpack(self, b, seen=set([])): + def unpack(self, b, seen=None): + if seen is None: + seen = set([]) + if hasattr(b, "body"): return self.unpack(b.body, seen) if isinstance(b, DummyObject): |