Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +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)) {
$return->body = $body;
}
$return->body = $body;
}

// Pretend CRLF = LF for compatibility (RFC 2616, section 19.3)
Expand Down