Skip to content

Commit f3829fd

Browse files
committed
[Modify] Polish it
1 parent 40238d4 commit f3829fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websocket-sharp/Net/HttpListenerPrefix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ private void parse (string uriPrefix)
127127
var len = uriPrefix.Length;
128128
var hostStartIdx = uriPrefix.IndexOf (':') + 3;
129129
var rootIdx = uriPrefix.IndexOf ('/', hostStartIdx + 1, len - hostStartIdx - 1);
130-
var colonIdx = uriPrefix.LastIndexOf (':', rootIdx - 1, rootIdx - hostStartIdx - 1);
130+
var colonIdx = uriPrefix
131+
.LastIndexOf (':', rootIdx - 1, rootIdx - hostStartIdx - 1);
131132

132133
var hasPort = uriPrefix[rootIdx - 1] != ']' && colonIdx > hostStartIdx;
133134

0 commit comments

Comments
 (0)