Handle statuscodes in HTTPRequest compliant to RFC 2616
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 10 Apr 2013 17:47:13 +0000 (19:47 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 10 Apr 2013 17:47:39 +0000 (19:47 +0200)
wcfsetup/install/files/lib/util/HTTPRequest.class.php

index 54709f554e5c26e013bd45452609756952e370cf..f7c527ce7c232a69395232cd809a2475e28bec2d 100644 (file)
@@ -215,7 +215,7 @@ final class HTTPRequest {
                                
                                $newRequest = clone $this;
                                $newRequest->options['maxDepth']--;
-                               if ($this->statusCode != '307') {
+                               if ($this->statusCode != '303') {
                                        $newRequest->options['method'] = 'GET';
                                        $newRequest->postParameters = array();
                                        $newRequest->addHeader('Content-length', '');