Skip to content

Commit

Permalink
feat: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Mar 18, 2024
1 parent 216965c commit 4326a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static function fetch(
CURLOPT_HEADERFUNCTION => function ($curl, $header) use (&$responseHeaders) {
$len = strlen($header);
$header = explode(':', $header, 2);
if (count($header) < 2) {
if (count($header) < 2) { // ignore invalid headers
return $len;
}
$responseHeaders[strtolower(trim($header[0]))] = trim($header[1]);
Expand Down Expand Up @@ -128,7 +128,7 @@ public static function fetch(
headers: $responseHeaders,
body: $responseBody
);

return $response;
}

Expand Down

0 comments on commit 4326a49

Please sign in to comment.