mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
add comment that explains OrderedDict use
This commit is contained in:
parent
74e62903c1
commit
6bc1755750
@ -14,6 +14,10 @@ from .flow import Flow
|
||||
from collections import OrderedDict
|
||||
|
||||
class MessageMixin(stateobject.StateObject):
|
||||
# The restoration order is important currently, e.g. because
|
||||
# of .content setting .headers["content-length"] automatically.
|
||||
# Using OrderedDict is the short term fix, restoring state should
|
||||
# be implemented without side-effects again.
|
||||
_stateobject_attributes = OrderedDict(
|
||||
http_version=bytes,
|
||||
headers=Headers,
|
||||
|
Loading…
Reference in New Issue
Block a user