[wp-trac] [WordPress Trac] #20219: GET - Too many redirects
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 12 11:12:49 UTC 2012
#20219: GET - Too many redirects
--------------------------+-----------------------------
Reporter: Workshopshed | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The class-http.php incorrectly reports too many redirects when checking a
redirected request using CURL.
In function "request" the check on line 1113 only looks for HEAD requests
but this would also be valid for GET request with a redirect. The code for
handling redirection is later in the file.
Either the message on line 1118 should be changed or the sequenced changed
to process redirects correctly.
{{{
// If no response, and It's not a HEAD request with valid headers returned
if ( 0 == strlen($theResponse) && ('HEAD' !=
$args['method'] || empty($this->headers)) ) {
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20219>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list