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

This commit is contained in:
Josiah 2011-04-21 10:36:25 -07:00
parent 763ef35d0e
commit 98e46a23fa

View File

@ -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()