[Modify] Polish it
This commit is contained in:
parent
8876b63a1e
commit
0133cd605c
@ -927,8 +927,10 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
private void processRequest (HttpListenerWebSocketContext context)
|
private void processRequest (HttpListenerWebSocketContext context)
|
||||||
{
|
{
|
||||||
|
var path = context.RequestUri.AbsolutePath;
|
||||||
|
|
||||||
WebSocketServiceHost host;
|
WebSocketServiceHost host;
|
||||||
if (!_services.InternalTryGetServiceHost (context.RequestUri.AbsolutePath, out host)) {
|
if (!_services.InternalTryGetServiceHost (path, out host)) {
|
||||||
context.Close (HttpStatusCode.NotImplemented);
|
context.Close (HttpStatusCode.NotImplemented);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user