[Modify] Polish it

This commit is contained in:
sta 2020-10-01 19:38:19 +09:00
parent 2974c5fa22
commit cad362a75d

View File

@ -118,8 +118,11 @@ namespace WebSocketSharp.Net
throw new HttpListenerException (87, msg); throw new HttpListenerException (87, msg);
} }
if (path.IndexOf ("//", StringComparison.Ordinal) != -1) if (path.IndexOf ("//", StringComparison.Ordinal) != -1) {
throw new HttpListenerException (87, "Includes an invalid path."); var msg = "The URI prefix includes an invalid path.";
throw new HttpListenerException (87, msg);
}
var endpoint = new IPEndPoint (addr, port); var endpoint = new IPEndPoint (addr, port);