Fix warning in HTTP Header parsing where response message is not specified. Props hakre. Fixes #16885

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

View File

@ -362,7 +362,9 @@ class WP_Http {
continue;
if ( false === strpos($tempheader, ':') ) {
list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);
$stack = explode(' ', $tempheader, 3);
$stack[] = '';
list( , $response['code'], $response['message']) = $stack;
continue;
}