diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-18 18:07:38 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-18 18:07:38 +0200 |
commit | 2d4a5fb116a175df0d464e9a501124a858731d99 (patch) | |
tree | e4827d50f1833378bf7fd0b4cb370e37fceff2ed /libmproxy/protocol/http_replay.py | |
parent | 66d21fa4ba7bec0be0acc2c33baf8c6217bd2b38 (diff) | |
download | mitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.tar.gz mitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.tar.bz2 mitmproxy-2d4a5fb116a175df0d464e9a501124a858731d99.zip |
experimental: don't interfere with headers, fix #93
Diffstat (limited to 'libmproxy/protocol/http_replay.py')
-rw-r--r-- | libmproxy/protocol/http_replay.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |