Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.788
diff -u -p -r1.788 common.inc
--- includes/common.inc	21 Aug 2008 19:36:36 -0000	1.788
+++ includes/common.inc	4 Sep 2008 08:08:18 -0000
@@ -533,10 +533,10 @@ function drupal_http_request($url, $head
     if (isset($result->headers[$header]) && $header == 'Set-Cookie') {
       // RFC 2109: the Set-Cookie response header comprises the token Set-
       // Cookie:, followed by a comma-separated list of one or more cookies.
-      $result->headers[$header] .= ',' . trim($value);
+      $result->headers[strtolower($header)] .= ',' . trim($value);
     }
     else {
-      $result->headers[$header] = trim($value);
+      $result->headers[strtolower($header)] = trim($value);
     }
   }
 
@@ -560,10 +560,10 @@ function drupal_http_request($url, $head
     case 301: // Moved permanently
     case 302: // Moved temporarily
     case 307: // Moved temporarily
-      $location = $result->headers['Location'];
+      $location = $result->headers['location'];
 
       if ($retry) {
-        $result = drupal_http_request($result->headers['Location'], $headers, $method, $data, --$retry);
+        $result = drupal_http_request($location, $headers, $method, $data, --$retry);
         $result->redirect_code = $result->code;
       }
       $result->redirect_url = $location;
Index: modules/aggregator/aggregator.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.module,v
retrieving revision 1.390
diff -u -p -r1.390 aggregator.module
--- modules/aggregator/aggregator.module	3 Sep 2008 19:25:08 -0000	1.390
+++ modules/aggregator/aggregator.module	4 Sep 2008 08:08:20 -0000
@@ -613,7 +613,7 @@ function aggregator_refresh($feed) {
 
       // Filter the input data.
       if (aggregator_parse_feed($result->data, $feed)) {
-        $modified = empty($result->headers['Last-Modified']) ? 0 : strtotime($result->headers['Last-Modified']);
+        $modified = empty($result->headers['last-modified']) ? 0 : strtotime($result->headers['last-modified']);
 
         // Prepare the channel data.
         foreach ($channel as $key => $value) {
@@ -634,7 +634,7 @@ function aggregator_refresh($feed) {
           $image = NULL;
         }
 
-        $etag = empty($result->headers['ETag']) ? '' : $result->headers['ETag'];
+        $etag = empty($result->headers['etag']) ? '' : $result->headers['etag'];
         // Update the feed data.
         db_query("UPDATE {aggregator_feed} SET url = '%s', checked = %d, link = '%s', description = '%s', image = '%s', hash = '%s', etag = '%s', modified = %d WHERE fid = %d", $feed['url'], time(), $channel['LINK'], $channel['DESCRIPTION'], $image, $md5, $etag, $modified, $feed['fid']);
 
Index: modules/openid/openid.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.module,v
retrieving revision 1.27
diff -u -p -r1.27 openid.module
--- modules/openid/openid.module	24 Jul 2008 16:25:18 -0000	1.27
+++ modules/openid/openid.module	4 Sep 2008 08:08:21 -0000
@@ -275,14 +275,14 @@ function openid_discovery($claimed_id) {
     $result = drupal_http_request($xrds_url, $headers);
 
     if (!isset($result->error)) {
-      if (isset($result->headers['Content-Type']) && preg_match("/application\/xrds\+xml/", $result->headers['Content-Type'])) {
+      if (isset($result->headers['content-type']) && preg_match("/application\/xrds\+xml/", $result->headers['content-type'])) {
         // Parse XML document to find URL
         $services = xrds_parse($result->data);
       }
       else {
         $xrds_url = NULL;
-        if (isset($result->headers['X-XRDS-Location'])) {
-          $xrds_url = $result->headers['X-XRDS-Location'];
+        if (isset($result->headers['x-xrds-location'])) {
+          $xrds_url = $result->headers['x-xrds-location'];
         }
         else {
           // Look for meta http-equiv link in HTML head
