diff --git a/drupal6/sites/all/modules/twitter/twitter.lib.php b/drupal6/sites/all/modules/twitter/twitter.lib.php
index c50c7fd..2f61824 100644
--- a/twitter.lib.php
+++ b/twitter.lib.php
@@ -310,7 +310,13 @@ class Twitter {
       $format = $this->format;
     }
     $conf = TwitterConf::instance();
-    $url =  'http://'. $conf->get('api') .'/'. $path;
+    $args = explode("/", $path);
+    if ($args[0] == 'oauth') {
+      $url =  'http://'. $conf->get('api') .'/'. $path;
+    }
+    else {
+      $url =  'https://'. $conf->get('api') .'/1/'. $path;
+    }
     if (!empty($format)) {
       $url .= '.'. $this->format;
     }
