Skip to content

Commit

Permalink
Sent out a status text for unknown HTTP headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dawehner authored and fabpot committed Nov 19, 2015
1 parent f11e2e9 commit eec6fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Response.php
Expand Up @@ -412,7 +412,7 @@ public function setStatusCode($code, $text = null)
}

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;
}
Expand Down
Expand Up @@ -647,7 +647,7 @@ public function getStatusCodeFixtures()
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'),
);
Expand Down

0 comments on commit eec6fbc

Please sign in to comment.