We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ffd0c6 commit 6de0a8cCopy full SHA for 6de0a8c
1 file changed
src/Io/RequestHeaderParser.php
@@ -70,10 +70,10 @@ private function parseRequest($headers)
70
// parser does not support asterisk-form and authority-form
71
// remember original target and temporarily replace and re-apply below
72
$originalTarget = null;
73
- if (strpos($headers, 'OPTIONS * ') === 0) {
+ if (strncmp($headers, 'OPTIONS * ', 10) === 0) {
74
$originalTarget = '*';
75
$headers = 'OPTIONS / ' . substr($headers, 10);
76
- } elseif (strpos($headers, 'CONNECT ') === 0) {
+ } elseif (strncmp($headers, 'CONNECT ', 8) === 0) {
77
$parts = explode(' ', $headers, 3);
78
$uri = parse_url('tcp://' . $parts[1]);
79
0 commit comments