Skip to content

Commit

Permalink
fixed nginx header and body split
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegp committed Aug 22, 2019
1 parent 856caae commit d08ff86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CurlHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function request($method, $url, $options = [])
if ($errno) {
throw new \Exception($error, $errno);
}
list($message_headers, $message_body) = preg_split("/\r\n\r\n|\n\n|\r\r/", $response, 2);
list($message_headers, $message_body) = preg_split("/\r\n\r\n|\n\n|\r\r|\r\n/", $response, 2);

$headers = $this->curlParseHeaders($message_headers);
if ($headers['http_status_code'] >= 400) {
Expand Down

0 comments on commit d08ff86

Please sign in to comment.