[Modify] Polish it

This commit is contained in:
sta 2021-07-04 21:27:57 +09:00
parent d8eaefc3c7
commit d0af40181e

View File

@ -1138,8 +1138,9 @@ namespace WebSocketSharp.Server
}
var schm = uri.Scheme;
var http = schm == "http" || schm == "https";
if (!(schm == "http" || schm == "https")) {
if (!http) {
message = "The scheme part is not 'http' or 'https'.";
return false;