diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-06-19 10:52:05 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-06-19 12:05:10 +0200 |
commit | 6ad0e3e66ecbb0ccf9b1a1191deffcb28abbdd90 (patch) | |
tree | 974a7a694f1383324ce3101082a7c6e8007f68be | |
parent | 5c0161886ae03dcd3b4cfc726c7a53408cdb5d71 (diff) | |
download | mitmproxy-6ad0e3e66ecbb0ccf9b1a1191deffcb28abbdd90.tar.gz mitmproxy-6ad0e3e66ecbb0ccf9b1a1191deffcb28abbdd90.tar.bz2 mitmproxy-6ad0e3e66ecbb0ccf9b1a1191deffcb28abbdd90.zip |
fix default arg
-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 90dafca0..3fee4a9c 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): |