mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 10:26:23 +00:00
0e993bec6f
- Can be toggled with "o" then "h" in mitmproxy - Useful for transparent mode
11 lines
303 B
Python
11 lines
303 B
Python
import libmproxy.console.common as common
|
|
from libmproxy import utils, flow, encoding
|
|
import tutils
|
|
|
|
|
|
def test_format_flow():
|
|
f = tutils.tflow_full()
|
|
assert common.format_flow(f, True)
|
|
assert common.format_flow(f, True, hostheader=True)
|
|
assert common.format_flow(f, True, extended=True)
|