mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Merge branch 'issue-1099'
This commit is contained in:
commit
dcad3f72af
@ -186,7 +186,7 @@ class FlowView(tabs.Tabs):
|
||||
viewmode,
|
||||
message,
|
||||
limit,
|
||||
(bytes(message.headers), message.content) # Cache invalidation
|
||||
message # Cache invalidation
|
||||
)
|
||||
|
||||
def _get_content_view(self, viewmode, message, max_lines, _):
|
||||
|
@ -26,6 +26,9 @@ class MessageData(utils.Serializable):
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash(frozenset(self.__dict__.items()))
|
||||
|
||||
def set_state(self, state):
|
||||
for k, v in state.items():
|
||||
if k == "headers":
|
||||
@ -52,6 +55,9 @@ class Message(utils.Serializable):
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.data) ^ 1
|
||||
|
||||
def get_state(self):
|
||||
return self.data.get_state()
|
||||
|
||||
|
@ -81,6 +81,9 @@ class _MultiDict(MutableMapping, Serializable):
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.fields)
|
||||
|
||||
def get_all(self, key):
|
||||
"""
|
||||
Return the list of all values for a given key.
|
||||
|
Loading…
Reference in New Issue
Block a user