diff --git a/httprl.install b/httprl.install
index 5660e4d..4f71fe2 100644
--- a/httprl.install
+++ b/httprl.install
@@ -175,13 +175,12 @@ function httprl_install_http_test($mode, $blocking = FALSE) {
   // Choose how to issue the HTTP request.
   if ($mode == 1) {
     // Execute the request using core.
-    $version = substr(VERSION, 0, 1);
-    if ($version == 6) {
-      drupal_http_request($url, $headers);
-    }
-    elseif ($version == 7) {
+    if (substr(VERSION, 0, 1) >= 7) {
       drupal_http_request($url, $options);
     }
+    else {
+      drupal_http_request($url, $headers);
+    }
   }
   elseif ($mode == 2) {
     // Execute the request using httprl.
