[HttpFoundation] Added 308 as a valid redirect code

This commit is contained in:
Jordan Alliot 2012-06-10 01:20:06 +03:00
parent 6266b72ddc
commit 5d55726183

View File

@ -1100,7 +1100,7 @@ class Response
*/
public function isRedirect($location = null)
{
return in_array($this->statusCode, array(201, 301, 302, 303, 307)) && (null === $location ?: $location == $this->headers->get('Location'));
return in_array($this->statusCode, array(201, 301, 302, 303, 307, 308)) && (null === $location ?: $location == $this->headers->get('Location'));
}
/**