[Modify] Polish it

This commit is contained in:
sta 2017-07-08 15:07:15 +09:00
parent 8876b63a1e
commit 0133cd605c

View File

@ -927,8 +927,10 @@ namespace WebSocketSharp.Server
private void processRequest (HttpListenerWebSocketContext context)
{
var path = context.RequestUri.AbsolutePath;
WebSocketServiceHost host;
if (!_services.InternalTryGetServiceHost (context.RequestUri.AbsolutePath, out host)) {
if (!_services.InternalTryGetServiceHost (path, out host)) {
context.Close (HttpStatusCode.NotImplemented);
return;
}