aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-23 21:39:31 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-23 21:39:31 +1200
commit190392ea13f998fe298d48738131779f522d62e9 (patch)
treefe5db29feb06d8f50161f17acd9126a911d4d6dc /pathod
parent622a2b560753f2e4aa96bfb4e97bfcac4d0bedbd (diff)
downloadmitmproxy-190392ea13f998fe298d48738131779f522d62e9.tar.gz
mitmproxy-190392ea13f998fe298d48738131779f522d62e9.tar.bz2
mitmproxy-190392ea13f998fe298d48738131779f522d62e9.zip
Add a --nocraft option to pathod that turns off crafting.
Diffstat (limited to 'pathod')
-rwxr-xr-xpathod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pathod b/pathod
index d2635ff5..0bb8da31 100755
--- a/pathod
+++ b/pathod
@@ -31,6 +31,10 @@ if __name__ == "__main__":
help='Disable web interface and API.'
)
parser.add_argument(
+ "--nocraft", dest='nocraft', default=False, action="store_true",
+ help='Disable response crafting. If anchors are specified, they still work.'
+ )
+ parser.add_argument(
"--keyfile", dest='ssl_keyfile', default=None, type=str,
help='SSL key file. If not specified, a default key is used.'
)
@@ -85,7 +89,8 @@ if __name__ == "__main__":
staticdir = args.staticdir,
anchors = alst,
sizelimit = sizelimit,
- noweb = args.noweb
+ noweb = args.noweb,
+ nocraft = args.nocraft
)
except pathod.PathodError, v:
parser.error(str(v))