mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Serialize requestcount for ClientConnect objects.
This commit is contained in:
@@ -923,8 +923,9 @@ class uClientConnect(libpry.AutoTree):
|
||||
c2 = flow.ClientConnect(("a", 25))
|
||||
assert not c == c2
|
||||
|
||||
c2.requestcount = 99
|
||||
c._load_state(c2._get_state())
|
||||
assert c == c2
|
||||
assert c.requestcount == 99
|
||||
|
||||
c3 = c.copy()
|
||||
assert c3 == c
|
||||
|
||||
Reference in New Issue
Block a user