Make WordPress Core

Changeset 8560


Ignore:
Timestamp:
08/05/2008 10:22:07 PM (16 years ago)
Author:
ryan
Message:

Fix notice about body not having chunk formatting. Props santosj. see #4779

File:
1 edited

Legend:

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

    r8549 r8560  
    797797        list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
    798798        $theHeaders = WP_Http::processHeaders($theHeaders);
    799         $theBody = http_chunked_decode($theBody);
     799
     800        if ( !empty($theBody) )
     801            $theBody = http_chunked_decode($theBody);
    800802
    801803        $theResponse = array();
Note: See TracChangeset for help on using the changeset viewer.