diff --git a/CHANGELOG.md b/CHANGELOG.md index aeadca1..be01069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.1.1 # + +Fixed a bug with isAjaxRequest() + # 1.1 # `Alo::ifundefined()` added diff --git a/README.md b/README.md index cc48482..9e2eb46 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ Latest release API documentation: [https://aloframework.github.io/common/](https | dev-develop | Latest release | |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------:| -| [![Dev Build Status](https://travis-ci.org/aloframework/common.svg?branch=develop)](https://travis-ci.org/aloframework/common) | [![Release Build Status](https://travis-ci.org/aloframework/common.svg?branch=1.1)](https://travis-ci.org/aloframework/common) | +| [![Dev Build Status](https://travis-ci.org/aloframework/common.svg?branch=develop)](https://travis-ci.org/aloframework/common) | [![Release Build Status](https://travis-ci.org/aloframework/common.svg?branch=1.1.1)](https://travis-ci.org/aloframework/common) | | [![SensioLabsInsight](https://insight.sensiolabs.com/projects/2f980e0c-215e-4d11-8313-4d071b32b4fd/mini.png)](https://insight.sensiolabs.com/projects/2f980e0c-215e-4d11-8313-4d071b32b4fd) | [![SensioLabsInsight](https://i.imgur.com/KygqLtf.png)](https://insight.sensiolabs.com/projects/2f980e0c-215e-4d11-8313-4d071b32b4fd) | diff --git a/src/Alo.php b/src/Alo.php index d982ea5..e297268 100644 --- a/src/Alo.php +++ b/src/Alo.php @@ -126,6 +126,6 @@ static function ifundefined($const, $planB) { * @return bool */ static function isAjaxRequest() { - return strtolower(self::get($_SERVER['HTTP_X_REQUESTED_WITH'])) == 'xmlhttprequest'; + return self::get($_SERVER['HTTP_X_REQUESTED_WITH']) == 'XMLHttpRequest'; } }