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:
parent
27ef947141
commit
e988455155
|
@ -976,7 +976,7 @@ class WP_Http_Streams {
|
||||||
array(
|
array(
|
||||||
'method' => strtoupper($r['method']),
|
'method' => strtoupper($r['method']),
|
||||||
'user_agent' => $r['user-agent'],
|
'user_agent' => $r['user-agent'],
|
||||||
'max_redirects' => $r['redirection'],
|
'max_redirects' => $r['redirection'] + 1, // See #11557
|
||||||
'protocol_version' => (float) $r['httpversion'],
|
'protocol_version' => (float) $r['httpversion'],
|
||||||
'header' => $strHeaders,
|
'header' => $strHeaders,
|
||||||
'timeout' => $r['timeout'],
|
'timeout' => $r['timeout'],
|
||||||
|
|
Loading…
Reference in New Issue