[Modify] Polish it
This commit is contained in:
parent
b44feed4c7
commit
78f996b376
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user