We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6339a commit 35e255eCopy full SHA for 35e255e
websocket-sharp/Net/HttpListenerPrefix.cs
@@ -124,9 +124,9 @@ private void parse (string uriPrefix)
124
_isSecure = uriPrefix.StartsWith ("https", compType);
125
_scheme = _isSecure ? "https" : "http";
126
127
- var len = uriPrefix.Length;
128
var hostStartIdx = uriPrefix.IndexOf (':') + 3;
129
+ var len = uriPrefix.Length;
130
var rootIdx = uriPrefix
131
.IndexOf ('/', hostStartIdx + 1, len - hostStartIdx - 1);
132
0 commit comments