From 2dcf428173687f7da32264949c562e5e0504c39c Mon Sep 17 00:00:00 2001 From: Vladimir Zbrailov Date: Mon, 10 Mar 2014 11:23:36 +0400 Subject: [PATCH] changelog --- framework/CHANGELOG.md | 1 + framework/web/Request.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 9446f0a07a..a0a6eb140e 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -53,6 +53,7 @@ Yii Framework 2 Change Log - Bug #2607: `yii message` tool wasn't updating `message` table (mitalcoi) - Bug #2624: Html::textArea() should respect "name" option. (qiangxue) - Bug #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue) +- Bug #2681: Fixed the bug of php build-in server https://bugs.php.net/bug.php?id=66606 (dizews) - Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark) - Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark) - Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe) diff --git a/framework/web/Request.php b/framework/web/Request.php index e8d69d62b3..4b7c2abb52 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -958,7 +958,7 @@ class Request extends \yii\base\Request { if (isset($_SERVER["CONTENT_TYPE"])) { return $_SERVER["CONTENT_TYPE"]; - } elseif (isset($_SERVER["HTTP_CONTENT_TYPE"])) { + } elseif (isset($_SERVER["HTTP_CONTENT_TYPE"])) { //fix bug https://bugs.php.net/bug.php?id=66606 return $_SERVER["HTTP_CONTENT_TYPE"]; } return null;