Skip to content

Commit 35e255e

Browse files
committed
[Modify] Polish it
1 parent ab6339a commit 35e255e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket-sharp/Net/HttpListenerPrefix.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ private void parse (string uriPrefix)
124124
_isSecure = uriPrefix.StartsWith ("https", compType);
125125
_scheme = _isSecure ? "https" : "http";
126126

127-
var len = uriPrefix.Length;
128127
var hostStartIdx = uriPrefix.IndexOf (':') + 3;
129128

129+
var len = uriPrefix.Length;
130130
var rootIdx = uriPrefix
131131
.IndexOf ('/', hostStartIdx + 1, len - hostStartIdx - 1);
132132

0 commit comments

Comments
 (0)