mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Use null instead of 0 when setting content length. Props noel. fixes #10783
git-svn-id: http://svn.automattic.com/wordpress/trunk@11932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e789271d81
commit
203de75d3d
@ -280,7 +280,7 @@ class WP_Http {
|
||||
if ( is_null($r['body']) ) {
|
||||
// Some servers fail when sending content without the content-length
|
||||
// header being set.
|
||||
$r['headers']['Content-Length'] = 0;
|
||||
$r['headers']['Content-Length'] = null;
|
||||
$transports = WP_Http::_getTransport($r);
|
||||
} else {
|
||||
if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user