WordPress.org

Make WordPress Core

Changeset 8578


Ignore:
Timestamp:
08/06/2008 09:57:25 PM (10 years ago)
Author:
ryan
Message:

Check the headers for the transfer-encoding for chunked. Props santosj. see #4779

File:
1 edited

Legend:

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

    r8560 r8578  
    798798        $theHeaders = WP_Http::processHeaders($theHeaders);
    799799
    800         if ( !empty($theBody) )
     800        if ( ! empty( $theBody ) && isset( $theHeaders['headers']['transfer-encoding'] ) && 'chunked' == $theHeaders['headers']['transfer-encoding'] )
    801801            $theBody = http_chunked_decode($theBody);
    802802
Note: See TracChangeset for help on using the changeset viewer.