[Modify] Move it

This commit is contained in:
sta
2018-02-14 22:46:08 +09:00
parent f775caf21b
commit e1fa25f872
2 changed files with 22 additions and 14 deletions

View File

@@ -924,7 +924,13 @@ namespace WebSocketSharp.Server
private void processRequest (HttpListenerWebSocketContext context)
{
var path = context.RequestUri.AbsolutePath;
var uri = context.RequestUri;
if (uri == null) {
context.Close (HttpStatusCode.BadRequest);
return;
}
var path = uri.AbsolutePath;
WebSocketServiceHost host;
if (!_services.InternalTryGetServiceHost (path, out host)) {