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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-01-17 08:00:41 +00:00
parent 32ac56eaa8
commit 651925fe74
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'],