diff options
-rw-r--r-- | mitmproxy/io_compat.py | 4 | ||||
-rw-r--r-- | mitmproxy/version.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mitmproxy/io_compat.py b/mitmproxy/io_compat.py index d0e33bce..dd0c12d6 100644 --- a/mitmproxy/io_compat.py +++ b/mitmproxy/io_compat.py @@ -90,6 +90,9 @@ def convert_100_200(data): data["version"] = (2, 0, 0) return data +def convert_200_300(data): + data["version"] = (3, 0, 0) + return data def _convert_dict_keys(o: Any) -> Any: if isinstance(o, dict): @@ -140,6 +143,7 @@ converters = { (0, 18): convert_018_019, (0, 19): convert_019_100, (1, 0): convert_100_200, + (2, 0): convert_200_300, } diff --git a/mitmproxy/version.py b/mitmproxy/version.py index 22382c94..d23b2d19 100644 --- a/mitmproxy/version.py +++ b/mitmproxy/version.py @@ -1,4 +1,4 @@ -IVERSION = (2, 0, 0) +IVERSION = (3, 0, 0) VERSION = ".".join(str(i) for i in IVERSION) PATHOD = "pathod " + VERSION MITMPROXY = "mitmproxy " + VERSION |