From 2d4a5fb116a175df0d464e9a501124a858731d99 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 18 Sep 2015 18:07:38 +0200 Subject: experimental: don't interfere with headers, fix #93 --- libmproxy/protocol/http_replay.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmproxy/protocol/http_replay.py') diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py index 00b0b82b..14fbe547 100644 --- a/libmproxy/protocol/http_replay.py +++ b/libmproxy/protocol/http_replay.py @@ -1,5 +1,6 @@ from __future__ import (absolute_import, print_function, division) import threading +import traceback from libmproxy.exceptions import ReplayException from netlib.exceptions import HttpException, TcpException from netlib.http import http1 @@ -97,5 +98,8 @@ class RequestReplayThread(threading.Thread): # first place. from ..proxy.root_context import Log self.channel.tell("log", Log("Connection killed", "info")) + except Exception: + from ..proxy.root_context import Log + self.channel.tell("log", Log(traceback.format_exc(), "error")) finally: r.form_out = form_out_backup -- cgit v1.2.3