aboutsummaryrefslogtreecommitdiffstats
path: root/dev.bat
diff options
context:
space:
mode:
authorsethp-jive <seth.pellegrino@jivesoftware.com>2015-09-30 15:55:43 -0700
committersethp-jive <seth.pellegrino@jivesoftware.com>2015-09-30 15:55:43 -0700
commitfd8c921a2f04fa4dc8d4fdb123de4204f802f637 (patch)
tree9636232e7b9271eea9acf11a14510d9b031a93a3 /dev.bat
parentc6811bd0e854a91bc0c3f9cda676818bd5c76a5c (diff)
downloadmitmproxy-fd8c921a2f04fa4dc8d4fdb123de4204f802f637.tar.gz
mitmproxy-fd8c921a2f04fa4dc8d4fdb123de4204f802f637.tar.bz2
mitmproxy-fd8c921a2f04fa4dc8d4fdb123de4204f802f637.zip
Allow reading scripts from an anonymous pipe
Bash (and many other shells) provide a nifty feature in "anonymous pipe" or "anonymous fifo" whereby the output of a subshell may be treated as a simple file by the parent shell: http://unix.stackexchange.com/a/156088 Unfortunately, libmproxy complains because that "file" is not a regular file, as os.path.isfile checks, e.g. giving the error "Not a file: /dev/fd/11". This patch is intended to provide for the following use-case: ``` mitmdump -s <(echo "def response(context, flow):\n flow.response.headers['newheader'] = [`hostname`]") ``` where `hostname` may be replaced with a more complicated lookup.
Diffstat (limited to 'dev.bat')
0 files changed, 0 insertions, 0 deletions