diff --git a/libraries/joomla/http/transport/curl.php b/libraries/joomla/http/transport/curl.php index ac15e5636e0b3..c5394368779ba 100644 --- a/libraries/joomla/http/transport/curl.php +++ b/libraries/joomla/http/transport/curl.php @@ -120,7 +120,7 @@ public function request($method, JUri $uri, $data = null, array $headers = null, // If an explicit user agent is given use it. if (isset($userAgent)) { - $headers[CURLOPT_USERAGENT] = $userAgent; + $options[CURLOPT_USERAGENT] = $userAgent; } // Set the request URL.