From: Michael J. Rubinsky Date: Fri, 2 Oct 2009 00:56:58 +0000 (-0400) Subject: Actually, use the 'headers' option to add the headers, to make it X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=98829fdd119f5676976cefd7cd3a377acb0c036a;p=horde.git Actually, use the 'headers' option to add the headers, to make it clearer why they can't be set before setOptions() --- diff --git a/framework/Http/lib/Horde/Http/Request/Peclhttp.php b/framework/Http/lib/Horde/Http/Request/Peclhttp.php index 5431e8b6e..06c7f655a 100644 --- a/framework/Http/lib/Horde/Http/Request/Peclhttp.php +++ b/framework/Http/lib/Horde/Http/Request/Peclhttp.php @@ -87,11 +87,12 @@ class Horde_Http_Request_Peclhttp extends Horde_Http_Request_Base $httpOptions['httpauthtype'] = $this->_httpAuthScheme($this->authenticationScheme); } + // Headers + $httpOptions['headers'] = $this->headers; + // Set options $httpRequest->setOptions($httpOptions); - // Concatenate the headers - $httpRequest->addHeaders($this->headers); try { $httpResponse = $httpRequest->send(); } catch (HttpException $e) {