diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 13aec16..bafd80a 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -2178,7 +2178,7 @@ class Curl $response_header_array = explode("\r\n\r\n", $raw_response_headers); $response_header = ''; for ($i = count($response_header_array) - 1; $i >= 0; $i--) { - if (stripos($response_header_array[$i], 'HTTP/') === 0) { + if (isset($response_header_array[$i]) && stripos($response_header_array[$i], 'HTTP/') === 0) { $response_header = $response_header_array[$i]; break; }