[Modify] Add it
This commit is contained in:
parent
a5c19b14d6
commit
07211d3ad6
@ -675,6 +675,28 @@ namespace WebSocketSharp.Server
|
|||||||
return true;
|
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 (
|
private bool checkSslConfiguration (
|
||||||
ServerSslConfiguration configuration, out string message
|
ServerSslConfiguration configuration, out string message
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user