From b14bb52cddec33cf4f1f8bc8fc2ae387689f6ba1 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 7 Jun 2013 08:47:22 -0400 Subject: [PATCH] Fixed status text. --- framework/yii/web/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index 93c031e..12c3f34 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -142,7 +142,7 @@ class Response extends \yii\base\Response if ($this->isInvalid()) { throw new InvalidParamException("The HTTP status code is invalid: $value"); } - $this->statusText = isset(self::$statusTexts[$this->_statusCode]) ? self::$statusTexts[$this->_statusCode] : 'Error'; + $this->statusText = isset(self::$statusTexts[$this->_statusCode]) ? self::$statusTexts[$this->_statusCode] : ''; } /**