[Modify] Polish it
This commit is contained in:
parent
cad362a75d
commit
ba41292a36
@ -129,8 +129,11 @@ namespace WebSocketSharp.Net
|
|||||||
EndPointListener lsnr;
|
EndPointListener lsnr;
|
||||||
|
|
||||||
if (_endpoints.TryGetValue (endpoint, out lsnr)) {
|
if (_endpoints.TryGetValue (endpoint, out lsnr)) {
|
||||||
if (lsnr.IsSecure ^ pref.IsSecure)
|
if (lsnr.IsSecure ^ pref.IsSecure) {
|
||||||
throw new HttpListenerException (87, "Includes an invalid scheme.");
|
var msg = "The URI prefix includes an invalid scheme.";
|
||||||
|
|
||||||
|
throw new HttpListenerException (87, msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lsnr = new EndPointListener (
|
lsnr = new EndPointListener (
|
||||||
|
Loading…
Reference in New Issue
Block a user