mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 00:57:40 +02:00
Set Content-Length to 0 for null body requests. Props Jalada. see #8605 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
36d87099f8
commit
89c03b1658
@ -242,6 +242,7 @@ class WP_Http {
|
||||
}
|
||||
|
||||
if ( is_null($r['body']) ) {
|
||||
$r['headers']['Content-Length'] = 0;
|
||||
$transports = WP_Http::_getTransport($r);
|
||||
} else {
|
||||
if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user