diff options
-rw-r--r-- | mitmproxy/io_compat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/io_compat.py b/mitmproxy/io_compat.py index 9f73693e..8cdd0346 100644 --- a/mitmproxy/io_compat.py +++ b/mitmproxy/io_compat.py @@ -86,6 +86,11 @@ def convert_019_100(data): return data +def convert_100_200(data): + data["version"] = (2, 0, 0) + return data + + def _convert_dict_keys(o: Any) -> Any: if isinstance(o, dict): return {strutils.native(k): _convert_dict_keys(v) for k, v in o.items()} @@ -134,6 +139,7 @@ converters = { (0, 17): convert_017_018, (0, 18): convert_018_019, (0, 19): convert_019_100, + (1, 0): convert_100_200, } |