[Modify] Polish it

This commit is contained in:
sta 2016-05-05 16:15:24 +09:00
parent 86947f66a1
commit be1adc82f1

View File

@ -85,10 +85,10 @@ namespace WebSocketSharp.Net
var path = pref.Path;
if (path.IndexOf ('%') != -1)
throw new HttpListenerException (87, "Invalid path.");
throw new HttpListenerException (87, "Includes an invalid path.");
if (path.IndexOf ("//", StringComparison.Ordinal) != -1)
throw new HttpListenerException (87, "Invalid path.");
throw new HttpListenerException (87, "Includes an invalid path.");
// Listens on all the interfaces if host name cannot be parsed by IPAddress.
getEndPointListener (pref, listener).AddPrefix (pref, listener);