From: Tim Düsterhus Date: Wed, 5 Feb 2014 00:33:02 +0000 (+0100) Subject: Fix $append of HTTPRequest::addHeader() X-Git-Tag: 2.0.3~56^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a377993e5831000bb5b256b5ecd6d59b3f3d67a6;p=GitHub%2FWoltLab%2FWCF.git Fix $append of HTTPRequest::addHeader() --- diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index ac47a3636c..3ae0afdb63 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -422,8 +422,9 @@ final class HTTPRequest { if ($append && isset($this->headers[$name])) { $this->headers[$name][] = $value; } - - $this->headers[$name] = (array) $value; + else { + $this->headers[$name] = array($value); + } } /**