mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Fix crash in mitmproxy when viewing responses
This commit is contained in:
parent
abf3cae54e
commit
3a9e03ea1e
@ -213,7 +213,9 @@ class _MultiDict(MutableMapping, Serializable):
|
|||||||
class MultiDict(_MultiDict):
|
class MultiDict(_MultiDict):
|
||||||
def __init__(self, fields=None):
|
def __init__(self, fields=None):
|
||||||
super(MultiDict, self).__init__()
|
super(MultiDict, self).__init__()
|
||||||
self.fields = tuple(fields) if fields else tuple() # type: Tuple[Tuple[bytes, bytes], ...]
|
self.fields = tuple(
|
||||||
|
[tuple(i) for i in fields or ()]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(ABCMeta)
|
@six.add_metaclass(ABCMeta)
|
||||||
|
Loading…
Reference in New Issue
Block a user