diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-28 12:56:08 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-28 12:56:08 +1300 |
commit | 9d42a06c92f0fdc7ca986b738086d361d9b0599b (patch) | |
tree | 03604d6f93c3358d8cf70bf0e94f601e8ce5754b /libpathod/app.py | |
parent | f54ed69a358d2dd059bd844c752f96e29e90e269 (diff) | |
download | mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.tar.gz mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.tar.bz2 mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.zip |
Move message body to new lazy-generator scheme.
Diffstat (limited to 'libpathod/app.py')
-rw-r--r-- | libpathod/app.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 6f12c0a2..38d0be33 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -123,18 +123,14 @@ def _preview(is_request): args["syntaxerror"] = str(v) args["marked"] = v.marked() return render(template, False, **args) - except language.FileAccessDenied: - args["error"] = "File access is disabled." - return render(template, False, **args) s = cStringIO.StringIO() args["pauses"] = r.preview_safe() - c = app.config["pathod"].check_policy(r) + c = app.config["pathod"].check_policy(r, app.config["pathod"].request_settings) if c: args["error"] = c return render(template, False, **args) - if is_request: r.serve(s, app.config["pathod"].request_settings, host="example.com") else: |