diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-05 15:05:44 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-05 15:05:44 +0200 |
commit | f2570c773aa18e4ac236b1cf7f43acfb4ca080dd (patch) | |
tree | 10ed3ad13060e33864a8cd00c54317340d07425c /test/test_examples.py | |
parent | a7a3b5703adff7de12fb479a90ea2628465a4486 (diff) | |
download | mitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.tar.gz mitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.tar.bz2 mitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.zip |
iframe injector example: use inline script
Diffstat (limited to 'test/test_examples.py')
-rw-r--r-- | test/test_examples.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_examples.py b/test/test_examples.py index d18b5862..d557080e 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -12,6 +12,8 @@ def test_load_scripts(): tmaster = tservers.TestMaster(config.ProxyConfig()) for f in scripts: + if "iframe_injector" in f: + f += " foo" # one argument required if "modify_response_body" in f: f += " foo bar" # two arguments required script.Script(f, tmaster) # Loads the script file.
\ No newline at end of file |