Always use '&' as arg separator when building the body. fixes #7522
git-svn-id: https://develop.svn.wordpress.org/trunk@8648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b8c683da8d
commit
257fd97f4c
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user