WordPress.org

Make WordPress Core

Changeset 10211


Ignore:
Timestamp:
12/16/08 22:07:18 (5 years ago)
Author:
ryan
Message:

Set Content-Length to 0 for null body requests. Props Jalada. see #8605

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r10190 r10211  
    243243 
    244244        if ( is_null($r['body']) ) { 
     245            $r['headers']['Content-Length'] = 0; 
    245246            $transports = WP_Http::_getTransport($r); 
    246247        } else { 
Note: See TracChangeset for help on using the changeset viewer.