diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-26 14:25:39 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-26 14:25:39 +1200 |
commit | 10a19fc4da5a6fbbfd4a36d0e61d3bc80a38e937 (patch) | |
tree | ad4d4e2f4fa8769d61ea06fbfc3881870eeb737b /pathoc | |
parent | 424d15c28ba46d2d42b96d2247166eb13b4c7b8e (diff) | |
download | mitmproxy-10a19fc4da5a6fbbfd4a36d0e61d3bc80a38e937.tar.gz mitmproxy-10a19fc4da5a6fbbfd4a36d0e61d3bc80a38e937.tar.bz2 mitmproxy-10a19fc4da5a6fbbfd4a36d0e61d3bc80a38e937.zip |
Refactor print_requests -> print_request
- Change to handle one request at a time
- Shift error handling around
Diffstat (limited to 'pathoc')
-rwxr-xr-x | pathoc | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -74,14 +74,15 @@ if __name__ == "__main__": continue if args.timeout: p.settimeout(args.timeout) - p.print_requests( - args.request, - showreq=args.showreq, - showresp=args.showresp, - explain=args.explain, - hexdump=args.hexdump, - ) - sys.stdout.flush() + for spec in args.request: + p.print_request( + spec, + showreq=args.showreq, + showresp=args.showresp, + explain=args.explain, + hexdump=args.hexdump, + ) + sys.stdout.flush() except KeyboardInterrupt: pass |