diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 20:33:42 +0100 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2014-12-23 20:33:42 +0100 |
| commit | 2861d99de4d329bcba0a3c2193523398a22673c0 (patch) | |
| tree | 0aa1a2aae666c2909285a6fd5049f2ef7d6d8ebc /web/src/js/components/utils.jsx.js | |
| parent | 459772a8ef79ac0adeaeba56577972e86074265e (diff) | |
| download | mitmproxy-2861d99de4d329bcba0a3c2193523398a22673c0.tar.gz mitmproxy-2861d99de4d329bcba0a3c2193523398a22673c0.tar.bz2 mitmproxy-2861d99de4d329bcba0a3c2193523398a22673c0.zip | |
web: intercept feature
Diffstat (limited to 'web/src/js/components/utils.jsx.js')
| -rw-r--r-- | web/src/js/components/utils.jsx.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/utils.jsx.js b/web/src/js/components/utils.jsx.js index 81ba6b4d..20dbda94 100644 --- a/web/src/js/components/utils.jsx.js +++ b/web/src/js/components/utils.jsx.js @@ -113,7 +113,7 @@ var xsrf = $.param({_xsrf: getCookie("_xsrf")}); //Tornado XSRF Protection. $.ajaxPrefilter(function (options) { - if (options.type === "post" && options.url[0] === "/") { + if (["post","put","delete"].indexOf(options.type.toLowerCase()) >= 0 && options.url[0] === "/") { if (options.data) { options.data += ("&" + xsrf); } else { |
