Make WordPress Core

Changeset 9741


Ignore:
Timestamp:
11/17/2008 09:21:35 PM (16 years ago)
Author:
ryan
Message:

Auto set content-length. Props jacobsantos. fixes #8249

File:
1 edited

Legend:

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

    r9716 r9741  
    251251            }
    252252
     253            if ( ! isset( $r['headers']['Content-Length'] ) && ! isset( $r['headers']['content-length'] ) )
     254                $r['headers']['Content-Length'] = strlen($r['body']);
     255
    253256            $transports = WP_Http::_postTransport($r);
    254257        }
Note: See TracChangeset for help on using the changeset viewer.