Changeset 8560

Show
Ignore:
Timestamp:
08/05/08 22:22:07 (4 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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();