### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/class-http.php
===================================================================
--- wp-includes/class-http.php	(revision 17521)
+++ wp-includes/class-http.php	(working copy)
@@ -766,7 +766,8 @@
 		// If location is found, then assume redirect and redirect to location.
 		if ( 'HEAD' != $r['method'] && isset($arrHeaders['headers']['location']) ) {
 			if ( $r['redirection']-- > 0 ) {
-				return $this->request($arrHeaders['headers']['location'], $r);
+				$location = (array) $arrHeaders['headers']['location'];
+				return $this->request($location[0], $r);
 			} else {
 				return new WP_Error('http_request_failed', __('Too many redirects.'));
 			}
