From bd0e4b967890efc4194e4bbd68164fefaa4c5634 Mon Sep 17 00:00:00 2001 From: sainrew Date: Mon, 12 Dec 2016 07:45:59 +0000 Subject: [PATCH] fix header --- Daemon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Daemon.php b/Daemon.php index 84c04d0..239862a 100644 --- a/Daemon.php +++ b/Daemon.php @@ -110,7 +110,7 @@ protected function _handshake($connectionId) { $upgrade = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n" . "Upgrade: websocket\r\n" . "Connection: Upgrade\r\n" . - "Sec-WebSocket-Accept:$SecWebSocketAccept\r\n\r\n"; + "Sec-WebSocket-Accept: {$SecWebSocketAccept}\r\n\r\n"; $this->_write($connectionId, $upgrade); unset($this->_handshakes[$connectionId]);