Explorar el Código

Added 201 to the possible status codes that indicate a response is a redirect.

Josiah hace 14 años
padre
commit
98e46a23fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Component/HttpFoundation/Response.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/Response.php

@@ -751,7 +751,7 @@ class Response
 
     public function isRedirect()
     {
-        return in_array($this->statusCode, array(301, 302, 303, 307));
+        return in_array($this->statusCode, array(201, 301, 302, 303, 307));
     }
 
     public function isEmpty()