WordPress.org

Make WordPress Core

Ticket #13730: 13730.diff

File 13730.diff, 564 bytes (added by mdawaffe, 5 years ago)
  • wp-includes/class-http.php

     
    280280                        $r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding(); 
    281281 
    282282                if ( empty($r['body']) ) { 
     283                        $r['body'] = null; 
    283284                        // Some servers fail when sending content without the content-length header being set. 
    284285                        // Also, to fix another bug, we only send when doing POST and PUT and the content-length 
    285286                        // header isn't already set.