[wp-trac] [WordPress Trac] #18273: Flaw in WP_Http_Encoding::accept_encoding() or related.
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 28 00:00:37 UTC 2011
#18273: Flaw in WP_Http_Encoding::accept_encoding() or related.
--------------------------+-----------------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version: 3.2.1
Severity: normal | Keywords:
--------------------------+-----------------------------
SO, I'm trying to interface with the MailChimp API via WP_Http() and no
matter what I put in the settings, I get back encoded data in the
['body']. If I enter the API URL into the browser, it comes back fine. If
I edit /wp-includes/class-http.php and change
{{{
$r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding();
}}}
to
{{{
$r['headers']['Accept-Encoding'] = '';
}}}
it also comes back fine.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18273>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list