diff --git a/libraries/http_request.inc b/libraries/http_request.inc
index 43a3b7fa3034758531101130febe12bddaa29f7e..a94572471386a08da9a9a7ce1102784e9b140d0b 100644
--- a/libraries/http_request.inc
+++ b/libraries/http_request.inc
@@ -178,7 +178,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
     }
   }
   else {
-    $result = drupal_http_request($url, $headers);
+    $result = drupal_http_request($url, array('headers' => $headers));
   }
 
   $result->code = isset($result->code) ? $result->code : 200;