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:
parent
d5ae0717c0
commit
b4d213c7a5
|
@ -362,7 +362,9 @@ class WP_Http {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( false === strpos($tempheader, ':') ) {
|
if ( false === strpos($tempheader, ':') ) {
|
||||||
list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);
|
$stack = explode(' ', $tempheader, 3);
|
||||||
|
$stack[] = '';
|
||||||
|
list( , $response['code'], $response['message']) = $stack;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue