--- common.inc	2009-10-13 01:21:44.000000000 -0400
+++ common.inc.old	2009-10-05 00:51:46.000000000 -0400
@@ -433,8 +433,6 @@
 function drupal_http_request($url, $headers = array(), $method = 'GET', $data = NULL, $retry = 3) {
   global $db_prefix;
 
-  dfb($data,"RData");
-
   $result = new stdClass();
 
   // Parse the URL and make sure we can handle the schema.
@@ -585,18 +583,10 @@
     case 301: // Moved permanently
     case 302: // Moved temporarily
     case 307: // Moved temporarily
-      if($result->headers['Location'][0] == '.') {
-          if($url[strlen($url)-1] != '/') {
-              $url .= "/";
-          }
-          
-          $location = $url .  $result->headers['Location'];
-      } else {
-          $location = $result->headers['Location'];
-      }
+      $location = $result->headers['Location'];
 
       if ($retry) {
-        $result = drupal_http_request($location, $headers, $method, $data, --$retry);
+        $result = drupal_http_request($result->headers['Location'], $headers, $method, $data, --$retry);
         $result->redirect_code = $result->code;
       }
       $result->redirect_url = $location;
