[Http][Tests] Refactored unit tests, added new for HTTP

This commit is contained in:
Chris Boden 2013-04-27 10:27:45 -04:00
parent 8356130b97
commit c416cb70a8

View File

@ -110,7 +110,6 @@ class WsServer implements HttpServerInterface {
return;
}
// This needs to be refactored later on, incorporated with routing
if ('' !== ($agreedSubProtocols = $this->getSubProtocolString($conn->WebSocket->request->getTokenizedHeader('Sec-WebSocket-Protocol', ',')))) {
$response->setHeader('Sec-WebSocket-Protocol', $agreedSubProtocols);
}