Browse Source

[Modify] Polish it

pull/755/head
sta 2 years ago
parent
commit
663f1f968f
  1. 5
      websocket-sharp/Net/HttpListenerPrefix.cs

5
websocket-sharp/Net/HttpListenerPrefix.cs

@ -125,7 +125,10 @@ namespace WebSocketSharp.Net
private void parse (string uriPrefix)
{
if (uriPrefix.StartsWith ("https", StringComparison.Ordinal))
var compType = StringComparison.Ordinal;
var secure = uriPrefix.StartsWith ("https", compType);
if (secure)
_secure = true;
var len = uriPrefix.Length;

Loading…
Cancel
Save