diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 39a785b3..2e99252b 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -740,8 +740,9 @@ namespace WebSocketSharp.Net } if (schm == null) { - schm = (websocketRequest ? "ws" : "http") - + (secure ? "s" : String.Empty); + schm = websocketRequest + ? (secure ? "wss" : "ws") + : (secure ? "https" : "http"); } if (host.IndexOf (':') == -1)