[前端]修正csrf.js uploader.js 的参数设置

[CI SKIP]
This commit is contained in:
esp
2015-08-10 17:00:39 +08:00
parent fc1638d468
commit 70a77cccc8
2 changed files with 13 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ define("csrf",function(){
}
function csrfHeader(){
// jquery的请求
if(arguments.length == 1) {
if(arguments.length == 2) {
arguments[0].setRequestHeader("X-CSRFToken", get_cookie("csrftoken"));
}
// 百度webuploader 的请求