mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Use null instead of 0 when setting content length. Props noel. fixes #10783
git-svn-id: https://develop.svn.wordpress.org/trunk@11932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
141bbe94a7
commit
667779223a
@ -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…
x
Reference in New Issue
Block a user