mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
minor fixes
This commit is contained in:
parent
8f8796f9d9
commit
4873547de3
@ -194,7 +194,7 @@ class Headers(MutableMapping):
|
||||
return Headers(copy.copy(self.fields))
|
||||
|
||||
# Implement the StateObject protocol from mitmproxy
|
||||
def get_state(self, short=False):
|
||||
def get_state(self):
|
||||
return tuple(tuple(field) for field in self.fields)
|
||||
|
||||
def load_state(self, state):
|
||||
|
@ -292,7 +292,7 @@ class Request(Message):
|
||||
return None
|
||||
|
||||
@multipart_form.setter
|
||||
def multipart_form(self):
|
||||
def multipart_form(self, value):
|
||||
raise NotImplementedError()
|
||||
|
||||
# Legacy
|
||||
|
@ -169,7 +169,7 @@ class ODict(object):
|
||||
return count
|
||||
|
||||
# Implement the StateObject protocol from mitmproxy
|
||||
def get_state(self, short=False):
|
||||
def get_state(self):
|
||||
return [tuple(i) for i in self.lst]
|
||||
|
||||
def load_state(self, state):
|
||||
|
Loading…
Reference in New Issue
Block a user