From 78f996b37680af60ff71936a24fb1f04eba18c94 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 16 Jan 2019 21:47:37 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)