diff --git a/src/Seq.Api/Client/SeqApiClient.cs b/src/Seq.Api/Client/SeqApiClient.cs index 6417e95..fed86cb 100644 --- a/src/Seq.Api/Client/SeqApiClient.cs +++ b/src/Seq.Api/Client/SeqApiClient.cs @@ -528,8 +528,10 @@ static string EnsureAbsoluteWebSocketUri(string target, Uri apiBaseAddress) absoluteUnknownScheme = new UriBuilder(combined); } - absoluteUnknownScheme.Scheme = absoluteUnknownScheme.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "ws" : "wss"; - + absoluteUnknownScheme.Scheme = absoluteUnknownScheme.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) || + absoluteUnknownScheme.Scheme.Equals("ws", StringComparison.OrdinalIgnoreCase) ? + "ws" : "wss"; + return absoluteUnknownScheme.ToString(); } diff --git a/src/Seq.Api/Seq.Api.csproj b/src/Seq.Api/Seq.Api.csproj index e0dc7bd..19e11c8 100644 --- a/src/Seq.Api/Seq.Api.csproj +++ b/src/Seq.Api/Seq.Api.csproj @@ -1,7 +1,7 @@ Client library for the Seq HTTP API. - 2025.2.1 + 2025.2.2 Datalust;Contributors netstandard2.0;net6.0;net8.0 true