Always use '&' as arg separator when building the body. fixes #7522

git-svn-id: http://svn.automattic.com/wordpress/trunk@8648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-14 22:54:43 +00:00
parent aaaffe8316
commit 02f5232d6e
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class WP_Http {
$transports = WP_Http::_getTransport();
} else {
if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {
$r['body'] = http_build_query($r['body']);
$r['body'] = http_build_query($r['body'], null, '&');
$r['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset');
$r['headers']['Content-Length'] = strlen($r['body']);
}