From 98829fdd119f5676976cefd7cd3a377acb0c036a Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 1 Oct 2009 20:56:58 -0400 Subject: [PATCH] Actually, use the 'headers' option to add the headers, to make it clearer why they can't be set before setOptions() --- framework/Http/lib/Horde/Http/Request/Peclhttp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.11.0