From 98e46a23fad17801cb4fef3a548ab1942028cd91 Mon Sep 17 00:00:00 2001 From: Josiah Date: Thu, 21 Apr 2011 10:36:25 -0700 Subject: [PATCH] Added 201 to the possible status codes that indicate a response is a redirect. --- src/Symfony/Component/HttpFoundation/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index 44ee891c9a..9e11e27822 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/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()