From 651925fe748453f9de3de47a118a6d81fcf212fe Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 17 Jan 2010 08:00:41 +0000 Subject: [PATCH] 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 --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 35caa402e9..42a70b9fa1 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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'],