Skip to content

Commit 0133cd6

Browse files
committed
[Modify] Polish it
1 parent 8876b63 commit 0133cd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

websocket-sharp/Server/HttpServer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,10 @@ private void processRequest (HttpListenerContext context)
927927

928928
private void processRequest (HttpListenerWebSocketContext context)
929929
{
930+
var path = context.RequestUri.AbsolutePath;
931+
930932
WebSocketServiceHost host;
931-
if (!_services.InternalTryGetServiceHost (context.RequestUri.AbsolutePath, out host)) {
933+
if (!_services.InternalTryGetServiceHost (path, out host)) {
932934
context.Close (HttpStatusCode.NotImplemented);
933935
return;
934936
}

0 commit comments

Comments
 (0)