From aa708a2d28439af742b4257bf14a8131a04f5dc3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 5 Jul 2012 11:52:56 +1200 Subject: Fix error when serializing reverted SSL flows. --- libmproxy/flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmproxy/flow.py') diff --git a/libmproxy/flow.py b/libmproxy/flow.py index dd43a24f..5f5cad4c 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -538,7 +538,7 @@ class Response(HTTPMsg): self.headers = ODictCaseless._from_state(state["headers"]) self.content = state["content"] self.timestamp = state["timestamp"] - self.cert = state["cert"] + self.cert = certutils.SSLCert.from_pem(state["cert"]) if state["cert"] else None def _get_state(self): return dict( -- cgit v1.2.3