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参数