diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-19 17:03:44 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-19 17:03:44 +1300 |
commit | d9c6be3d131fa01f70779307b688560f1ace0751 (patch) | |
tree | c74d24f7b96288a957bfceb27381af9e2f3e92dc /test | |
parent | 5da27a9905302a5e43fdf4db8a7b7b784544bed2 (diff) | |
download | mitmproxy-d9c6be3d131fa01f70779307b688560f1ace0751.tar.gz mitmproxy-d9c6be3d131fa01f70779307b688560f1ace0751.tar.bz2 mitmproxy-d9c6be3d131fa01f70779307b688560f1ace0751.zip |
Fix serialization when a Request has no associated client connection.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_proxy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index ba9d9bfa..cb2528fd 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -230,6 +230,10 @@ class uRequest(libpry.AutoTree): state = r.get_state() assert proxy.Request.from_state(state) == r + r.client_conn = None + state = r.get_state() + assert proxy.Request.from_state(state) == r + class uResponse(libpry.AutoTree): def test_simple(self): |