From 1b1e5fbced0f92d77e3dcda005ab7df40e308ec3 Mon Sep 17 00:00:00 2001 From: welefen Date: Sat, 7 Jun 2014 12:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DisAjax=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Lib/Core/Controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lib/Core/Controller.js b/lib/Lib/Core/Controller.js index 573ff937..564cb013 100644 --- a/lib/Lib/Core/Controller.js +++ b/lib/Lib/Core/Controller.js @@ -69,7 +69,7 @@ module.exports = Class(function() { * @return {Boolean} [description] */ isAjax: function() { - return this.header("X-Requested-With").toLowerCase() === "xmlhttprequest"; + return this.header("x-requested-with") === "XMLHttpRequest"; }, /** * 获取QUERY参数