From: Tim Düsterhus Date: Wed, 10 Apr 2013 17:47:13 +0000 (+0200) Subject: Handle statuscodes in HTTPRequest compliant to RFC 2616 X-Git-Tag: 2.0.0_Beta_1~370^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8ccb39bc9f4bb2f1e71a48f1d8926043fea1b8e;p=GitHub%2FWoltLab%2FWCF.git Handle statuscodes in HTTPRequest compliant to RFC 2616 --- diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index 54709f554e..f7c527ce7c 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -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', '');