[Modify] Add it

This commit is contained in:
sta 2016-11-03 15:59:35 +09:00
parent a5c19b14d6
commit 07211d3ad6

View File

@ -675,6 +675,28 @@ namespace WebSocketSharp.Server
return true;
}
private bool checkServicePath (string path, out string message)
{
message = null;
if (path.IsNullOrEmpty ()) {
message = "'path' is null or empty.";
return false;
}
if (path[0] != '/') {
message = "'path' is not an absolute path.";
return false;
}
if (path.IndexOfAny (new[] { '?', '#' }) > -1) {
message = "'path' includes either or both query and fragment components.";
return false;
}
return true;
}
private bool checkSslConfiguration (
ServerSslConfiguration configuration, out string message
)