diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-25 09:45:55 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-25 09:45:55 +1300 |
commit | 173b5c596e72700544f0252040adf3cbe8ebcb50 (patch) | |
tree | ae0a7b8c609ab8a6c8ea8b1e325fa3a08c28979e /libpathod/app.py | |
parent | c684f7417d75660048351470990818505bfb1d53 (diff) | |
download | mitmproxy-173b5c596e72700544f0252040adf3cbe8ebcb50.tar.gz mitmproxy-173b5c596e72700544f0252040adf3cbe8ebcb50.tar.bz2 mitmproxy-173b5c596e72700544f0252040adf3cbe8ebcb50.zip |
Start moving policy checks to service-time, rather than parse-time.
Diffstat (limited to 'libpathod/app.py')
-rw-r--r-- | libpathod/app.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 396e45c2..fc4e23ec 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -131,9 +131,9 @@ def _preview(is_request): args["pauses"] = r.preview_safe() if is_request: - r.serve(s, check=app.config["pathod"].check_policy, host="example.com") + r.serve(app.config["pathod"].request_settings, s, check=app.config["pathod"].check_policy, host="example.com") else: - r.serve(s, check=app.config["pathod"].check_policy) + r.serve(app.config["pathod"].request_settings, s, check=app.config["pathod"].check_policy) args["output"] = utils.escape_unprintables(s.getvalue()) return render(template, False, **args) |