explode always returns an array in this context. Props hakre. Fixes #16958
git-svn-id: https://develop.svn.wordpress.org/trunk@17600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b08c38074
commit
6a7acd8252
@ -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] : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user