[Modify] Polish it

This commit is contained in:
sta 2019-01-16 21:47:37 +09:00
parent b44feed4c7
commit 78f996b376

View File

@ -740,8 +740,9 @@ namespace WebSocketSharp.Net
} }
if (schm == null) { if (schm == null) {
schm = (websocketRequest ? "ws" : "http") schm = websocketRequest
+ (secure ? "s" : String.Empty); ? (secure ? "wss" : "ws")
: (secure ? "https" : "http");
} }
if (host.IndexOf (':') == -1) if (host.IndexOf (':') == -1)