[HttpFoundation] Added 308 as a valid redirect code
This commit is contained in:
parent
6266b72ddc
commit
5d55726183
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user