diff --git a/tls_passthrough.py b/tls_passthrough.py index 19c16ca..b14c007 100644 --- a/tls_passthrough.py +++ b/tls_passthrough.py @@ -49,14 +49,9 @@ class Listener: ctx.log.error('mitmproxy intercept http error:' + repr(e)) def response(self, flow): - response = flow.response - response_text = response.text - log_info = ctx.log.info - print('=====>', response) - print("--=-====>content===?", response.content) - print(response_text, "====>text") - with open('ut_log.text', 'wb') as f: - f.write(response.content) + resp = flow.response + print('=====>', resp) + print("--=-====>content===?", resp.content) class TlsStrategy(ABC):