Skip to content

Commit 9f914fb

Browse files
authored
Update Server.php
1 parent 6f5c616 commit 9f914fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function onConnect($connection) {
158158
public function onWebSocketConnect(TcpConnection $connection, $header)
159159
{
160160
// /app/1234567890abcdefghig?protocol=7&client=js&version=3.2.4&flash=false
161-
if (!preg_match('/ \/app\/([^\/^\?^ ]+)/', $header, $match)) {
161+
if (!preg_match('/ \/app\/([^\/^\?^ ]+)/', (string)$header, $match)) {
162162
echo "app_key not found\n$header\n";
163163
$connection->pauseRecv();
164164
return;

0 commit comments

Comments
 (0)