diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 00:10:01 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 00:10:01 +0200 |
commit | 649e63ff3c868397f493e1dabdc1c63d572aedd8 (patch) | |
tree | d95b10ebd35576f620d08eeab472e7d4fbf878db /libmproxy/console/common.py | |
parent | b0cfeff06d9dd99a16dfae19c5df3c73c5864fb9 (diff) | |
download | mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.tar.gz mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.tar.bz2 mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.zip |
fix some leftovers
Diffstat (limited to 'libmproxy/console/common.py')
-rw-r--r-- | libmproxy/console/common.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index a8440f79..5cb3dd2a 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -108,7 +108,7 @@ def raw_format_flow(f, focus, extended, padding): preamble = sum(i[1] for i in req) + len(req) -1 - if f["intercepting"] and not f["req_acked"]: + if f["intercepting"] and not f["acked"]: uc = "intercept" elif f["resp_code"] or f["err_msg"]: uc = "text" @@ -138,7 +138,7 @@ def raw_format_flow(f, focus, extended, padding): if f["resp_is_replay"]: resp.append(fcol(SYMBOL_REPLAY, "replay")) resp.append(fcol(f["resp_code"], ccol)) - if f["intercepting"] and f["resp_code"] and not f["resp_acked"]: + if f["intercepting"] and f["resp_code"] and not f["acked"]: rc = "intercept" else: rc = "text" @@ -172,11 +172,11 @@ flowcache = FlowCache() def format_flow(f, focus, extended=False, hostheader=False, padding=2): d = dict( intercepting = f.intercepting, + acked = f.reply.acked, req_timestamp = f.request.timestamp_start, req_is_replay = f.request.is_replay, req_method = f.request.method, - req_acked = f.request.reply.acked, req_url = f.request.get_url(hostheader=hostheader), err_msg = f.error.msg if f.error else None, @@ -197,7 +197,6 @@ def format_flow(f, focus, extended=False, hostheader=False, padding=2): d.update(dict( resp_code = f.response.code, resp_is_replay = f.response.is_replay, - resp_acked = f.response.reply.acked, resp_clen = contentdesc, resp_rate = "{0}/s".format(rate), )) |