Sent out a status text for unknown HTTP headers.
This commit is contained in:
parent
f11e2e9601
commit
eec6fbc768
|
@ -412,7 +412,7 @@ class Response
|
|||
}
|
||||
|
||||
if (null === $text) {
|
||||
$this->statusText = isset(self::$statusTexts[$code]) ? self::$statusTexts[$code] : '';
|
||||
$this->statusText = isset(self::$statusTexts[$code]) ? self::$statusTexts[$code] : 'unknown status';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -647,7 +647,7 @@ class ResponseTest extends ResponseTestCase
|
|||
array('200', null, 'OK'),
|
||||
array('200', false, ''),
|
||||
array('200', 'foo', 'foo'),
|
||||
array('199', null, ''),
|
||||
array('199', null, 'unknown status'),
|
||||
array('199', false, ''),
|
||||
array('199', 'foo', 'foo'),
|
||||
);
|
||||
|
|
Reference in New Issue