[Modify] Polish it
This commit is contained in:
parent
d8eaefc3c7
commit
d0af40181e
@ -1138,8 +1138,9 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
var schm = uri.Scheme;
|
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'.";
|
message = "The scheme part is not 'http' or 'https'.";
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user