From 1619af14865f6fa86829b13ce4cffc338e8e03a9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 3 Dec 2015 14:45:26 +0100 Subject: flow format compat: 0.14 -> 0.15 --- libmproxy/flow_format_compat.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libmproxy/flow_format_compat.py b/libmproxy/flow_format_compat.py index 02fa41a3..2b99b805 100644 --- a/libmproxy/flow_format_compat.py +++ b/libmproxy/flow_format_compat.py @@ -12,11 +12,18 @@ def convert_013_014(data): data["response"]["body"] = data["response"].pop("content") data["server_conn"].pop("state") data["server_conn"]["via"] = None - data["version"] = version.IVERSION + data["version"] = (0, 14) return data + +def convert_014_015(data): + data["version"] = (0, 15) + return data + + converters = { - (0, 13): convert_013_014 + (0, 13): convert_013_014, + (0, 14): convert_014_015, } -- cgit v1.2.3