Use path_prompt rather than plain prompt where needed in mitmproxy.

This commit is contained in:
Aldo Cortesi 2011-03-18 10:14:57 +13:00
parent 89b0ac5195
commit 894d3cc62d
2 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,5 @@
__mitmproxy__ is an SSL-capable, intercepting HTTP proxy.
__mitmproxy__ is a console application that allows traffic flows to be
inspected and edited on the fly.
__mitmproxy__ is an SSL-capable, intercepting HTTP proxy. It provides a console
interface that allows traffic flows to be inspected and edited on the fly.
__mitmdump__ is the command-line version of mitmproxy, with the same
functionality but without the frills. Think tcpdump for HTTP.

View File

@ -167,7 +167,7 @@ class ConnectionItem(WWrap):
self.state.revert(self.flow)
self.master.sync_list_view()
elif key == "w":
self.master.prompt(
self.master.path_prompt(
"Save this flow: ",
self.state.last_saveload,
self.master.save_one_flow,
@ -482,7 +482,7 @@ class ConnectionView(WWrap):
self.state.revert(self.flow)
self.master.refresh_connection(self.flow)
elif key == "w":
self.master.prompt(
self.master.path_prompt(
"Save this flow: ",
self.state.last_saveload,
self.master.save_one_flow,
@ -499,13 +499,13 @@ class ConnectionView(WWrap):
self.master.spawn_external_viewer(conn.content, t)
elif key == "b":
if self.state.view_flow_mode == VIEW_FLOW_REQUEST:
self.master.prompt(
self.master.path_prompt(
"Save request body: ",
self.state.last_saveload,
self.save_body
)
else:
self.master.prompt(
self.master.path_prompt(
"Save response body: ",
self.state.last_saveload,
self.save_body