Bring WP_Http_Streams maximum redirection into line with the rest of the transports. Fixes #11557

git-svn-id: https://develop.svn.wordpress.org/trunk@12745 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-01-17 08:00:41 +00:00
parent 27ef947141
commit e988455155
1 changed files with 1 additions and 1 deletions

View File

@ -976,7 +976,7 @@ class WP_Http_Streams {
array(
'method' => strtoupper($r['method']),
'user_agent' => $r['user-agent'],
'max_redirects' => $r['redirection'],
'max_redirects' => $r['redirection'] + 1, // See #11557
'protocol_version' => (float) $r['httpversion'],
'header' => $strHeaders,
'timeout' => $r['timeout'],