merged branch jalliot/patch-4 (PR #4544)
Commits -------5d55726
[HttpFoundation] Added 308 as a valid redirect code Discussion ---------- [HttpFoundation] Added 308 as a valid redirect code Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/jalliot/symfony.png?branch=patch-4)](http://travis-ci.org/jalliot/symfony) Fixes the following tickets: - Todo: - I think this should go on 2.0 but error code 308 has only been added in master... --------------------------------------------------------------------------- by lyrixx at 2012-06-09T22:56:32Z 👍 --------------------------------------------------------------------------- by travisbot at 2012-06-10T06:27:18Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1579937) (merged5d557261
into6266b72d
).
This commit is contained in:
commit
6e524e2863
@ -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