mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Don't take minor version into account when checking serialized data compatiblity.
This commit is contained in:
parent
9febc0813f
commit
55f7e8d5b9
@ -790,6 +790,7 @@ class Response(HTTPMsg):
|
||||
cookies.append((cookie_name, (cookie_value, cookie_parameters)))
|
||||
return dict(cookies)
|
||||
|
||||
|
||||
class ClientDisconnect:
|
||||
"""
|
||||
A client disconnection event.
|
||||
@ -1654,7 +1655,7 @@ class FlowReader:
|
||||
try:
|
||||
while 1:
|
||||
data = tnetstring.load(self.fo)
|
||||
if tuple(data["version"]) != version.IVERSION:
|
||||
if tuple(data["version"][:1]) != version.IVERSION[:1]:
|
||||
v = ".".join(str(i) for i in data["version"])
|
||||
raise FlowReadError("Incompatible serialized data version: %s"%v)
|
||||
off = self.fo.tell()
|
||||
|
@ -88,7 +88,7 @@ class ServerConnection(tcp.TCPClient):
|
||||
def terminate(self):
|
||||
try:
|
||||
self.wfile.flush()
|
||||
except IOError:
|
||||
except IOError: # pragma: no cover
|
||||
pass
|
||||
try:
|
||||
self.connection.close()
|
||||
|
Loading…
Reference in New Issue
Block a user