mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix race condition during state loading
PyPy and Python2.7 might process the state attributes in different order.
This commit is contained in:
parent
6d3b3994e2
commit
f2097b47ce
@ -11,9 +11,10 @@ from netlib.tcp import Address
|
||||
from .. import version, stateobject
|
||||
from .flow import Flow
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
class MessageMixin(stateobject.StateObject):
|
||||
_stateobject_attributes = dict(
|
||||
_stateobject_attributes = OrderedDict(
|
||||
http_version=bytes,
|
||||
headers=Headers,
|
||||
timestamp_start=float,
|
||||
|
Loading…
Reference in New Issue
Block a user