diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 08:47:03 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 08:47:03 +1300 |
commit | 4918feb7252c76c95d85cd8b2b0334a22aaae274 (patch) | |
tree | 5fd96c01a9a64d06ed7fe370a6da754e909443ca | |
parent | dcbb968b1bb8ca8e0effa770872795e7783573a7 (diff) | |
download | mitmproxy-4918feb7252c76c95d85cd8b2b0334a22aaae274.tar.gz mitmproxy-4918feb7252c76c95d85cd8b2b0334a22aaae274.tar.bz2 mitmproxy-4918feb7252c76c95d85cd8b2b0334a22aaae274.zip |
Add stub converter for 0.19 io format
-rw-r--r-- | mitmproxy/flow/io_compat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/flow/io_compat.py b/mitmproxy/flow/io_compat.py index 061bf16d..b01f96b6 100644 --- a/mitmproxy/flow/io_compat.py +++ b/mitmproxy/flow/io_compat.py @@ -65,6 +65,11 @@ def convert_017_018(data): return data +def convert_018_019(data): + data["version"] = (0, 19) + return data + + def _convert_dict_keys(o): # type: (Any) -> Any if isinstance(o, dict): @@ -116,6 +121,7 @@ converters = { (0, 15): convert_015_016, (0, 16): convert_016_017, (0, 17): convert_017_018, + (0, 18): convert_018_019, } |