explode always returns an array in this context. Props hakre. Fixes #16958

git-svn-id: http://svn.automattic.com/wordpress/trunk@17600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-04-05 06:41:51 +00:00
parent b4d213c7a5
commit 864330c766
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class WP_Http {
function processResponse($strResponse) {
$res = explode("\r\n\r\n", $strResponse, 2);
return array('headers' => isset($res[0]) ? $res[0] : array(), 'body' => isset($res[1]) ? $res[1] : '');
return array('headers' => $res[0], 'body' => isset($res[1]) ? $res[1] : '');
}
/**