ソースを参照

Merge remote branch 'web-dev/master'

* web-dev/master:
  Added 201 to the possible status codes that indicate a response is a redirect.
Fabien Potencier 14 年 前
コミット
a2ab05e9c2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Symfony/Component/HttpFoundation/Response.php

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

@@ -738,7 +738,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()