Skip to content

Commit

Permalink
Fixed Notice: Undefined offset: 2
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegp committed May 29, 2020
1 parent c031e9d commit f4c9d9a
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 @@ -74,7 +74,7 @@ private function curlParseHeaders($message_headers)
{
$header_lines = preg_split("/\r\n|\n|\r/", $message_headers);
$headers = array();
list(, $headers['http_status_code'], $headers['http_status_message']) = explode(' ', trim(array_shift($header_lines)), 3);
list(, $headers['http_status_code'], $headers['http_status_message']) = explode(' ', array_shift($header_lines), 3);
foreach ($header_lines as $header_line) {
list($name, $value) = explode(':', $header_line, 2);
$name = strtolower($name);
Expand Down

0 comments on commit f4c9d9a

Please sign in to comment.