diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-28 11:38:49 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-28 11:38:49 +1200 |
| commit | 8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21 (patch) | |
| tree | 97bbb135e6c9241d7b79bafec92347150aa2e984 /pathoc | |
| parent | 65108ed4290399be7abbc58662cdc6d4f9371142 (diff) | |
| download | mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.tar.gz mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.tar.bz2 mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.zip | |
Add pathoc -T to ignore timeouts.
Also move -c to -C for consistency.
Diffstat (limited to 'pathoc')
| -rwxr-xr-x | pathoc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -35,7 +35,7 @@ if __name__ == "__main__": ) group = parser.add_argument_group('Controlling Output') group.add_argument( - "-c", dest="ignorecodes", type=str, default="", + "-C", dest="ignorecodes", type=str, default="", help="Comma-separated list of response codes to ignore" ) group.add_argument( @@ -55,6 +55,10 @@ if __name__ == "__main__": help="Print full response" ) group.add_argument( + "-T", dest="ignoretimeout", action="store_true", default=False, + help="Ignore timeouts" + ) + group.add_argument( "-x", dest="hexdump", action="store_true", default=False, help="Output in hexdump format" ) @@ -94,7 +98,8 @@ if __name__ == "__main__": showresp=args.showresp, explain=args.explain, hexdump=args.hexdump, - ignorecodes=codes + ignorecodes=codes, + ignoretimeout=args.ignoretimeout ) sys.stdout.flush() if ret and args.oneshot: |
