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:
parent
32ac56eaa8
commit
651925fe74
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue