### 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)
@@ -447,12 +447,11 @@
 
 			if ( !empty( $value ) ) {
 				$key = strtolower( $key );
+				$value = trim( $value );
 				if ( isset( $newheaders[$key] ) ) {
-					if ( !is_array($newheaders[$key]) )
-						$newheaders[$key] = array($newheaders[$key]);
-					$newheaders[$key][] = trim( $value );
+					$newheaders[$key] = explode( ',', $value . ',' . implode( ',', (array) $newheaders[$key] ) );
 				} else {
-					$newheaders[$key] = trim( $value );
+					$newheaders[$key] = $value;
 				}
 				if ( 'set-cookie' == $key )
 					$cookies[] = new WP_Http_Cookie( $value );
