Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from bruno-buiret/dev
Browse files Browse the repository at this point in the history
Don't perform case sensitive matching during handshake
  • Loading branch information
tohenk authored Jul 5, 2021
2 parents 5d0ddc5 + fd3deaf commit e463099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function request($uri, $headers = [], $options = [])
} else {
if ($header) {
$this->result['headers'][] = trim($content);
if (null === $len && 'Content-Length:' === substr($content, 0, 15)) {
if (null === $len && 0 === stripos($content, 'Content-Length:')) {
$len = (int) trim(substr($content, 16));
}
} else {
Expand Down

0 comments on commit e463099

Please sign in to comment.