Browse Source

Fixed status text.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
b14bb52cdd
  1. 2
      framework/yii/web/Response.php

2
framework/yii/web/Response.php

@ -142,7 +142,7 @@ class Response extends \yii\base\Response
if ($this->isInvalid()) { if ($this->isInvalid()) {
throw new InvalidParamException("The HTTP status code is invalid: $value"); 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] : '';
} }
/** /**

Loading…
Cancel
Save