Skip to content

Commit 7e2112e

Browse files
committed
Earlier 2025.2 builds produce ws:// absolute WebSocket URIs, fix scheme normalization
1 parent bc77e58 commit 7e2112e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Seq.Api/Client/SeqApiClient.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,10 @@ static string EnsureAbsoluteWebSocketUri(string target, Uri apiBaseAddress)
528528
absoluteUnknownScheme = new UriBuilder(combined);
529529
}
530530

531-
absoluteUnknownScheme.Scheme = absoluteUnknownScheme.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "ws" : "wss";
532-
531+
absoluteUnknownScheme.Scheme = absoluteUnknownScheme.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ||
532+
absoluteUnknownScheme.Scheme.Equals("ws", StringComparison.OrdinalIgnoreCase) ?
533+
"ws" : "wss";
534+
533535
return absoluteUnknownScheme.ToString();
534536
}
535537

0 commit comments

Comments
 (0)