WP_HTTP: Fix a variable typo in [25153] See #23463
Built from https://develop.svn.wordpress.org/trunk@25155 git-svn-id: http://core.svn.wordpress.org/trunk@25134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a9ccf9bee
commit
f17254a835
|
@ -479,7 +479,7 @@ class WP_Http {
|
|||
$body_original = $body; // We'll be altering $body, so need a backup in case of error
|
||||
|
||||
while ( true ) {
|
||||
$has_chunk = (bool) preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', $body_copy, $match );
|
||||
$has_chunk = (bool) preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', $body, $match );
|
||||
if ( ! $has_chunk || empty( $match[1] ) )
|
||||
return $body_original;
|
||||
|
||||
|
|
Loading…
Reference in New Issue