diff --git a/src/Requests.php b/src/Requests.php index 761ae8612..8dffda713 100644 --- a/src/Requests.php +++ b/src/Requests.php @@ -739,7 +739,7 @@ protected static function parse_response($headers, $url, $req_headers, $req_data $headers = substr($return->raw, 0, $pos); // Headers will always be separated from the body by two new lines - `\n\r\n\r`. $body = substr($return->raw, $pos + 4); - if (!empty($body)) { + if ($body !== false) { $return->body = $body; } }