Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 158534b

Browse files
committed
Removed unneeded RunTime.IsWindows check.
1 parent 51e29b6 commit 158534b

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Titanium.Web.Proxy/Compression/CompressionFactory.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ internal static Stream Create(string type, Stream stream, bool leaveOpen = true)
2020
case KnownHeaders.ContentEncodingDeflate:
2121
return new DeflateStream(stream, CompressionMode.Compress, leaveOpen);
2222
case KnownHeaders.ContentEncodingBrotli:
23-
if (!RunTime.IsWindows)
24-
{
25-
throw new PlatformNotSupportedException("BrotliSharpLib currently supports only Windows.");
26-
}
27-
2823
return new BrotliSharpLib.BrotliStream(stream, CompressionMode.Compress, leaveOpen);
2924
default:
3025
throw new Exception($"Unsupported compression mode: {type}");

src/Titanium.Web.Proxy/Compression/DecompressionFactory.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ internal static Stream Create(string type, Stream stream, bool leaveOpen = true)
2020
case KnownHeaders.ContentEncodingDeflate:
2121
return new DeflateStream(stream, CompressionMode.Decompress, leaveOpen);
2222
case KnownHeaders.ContentEncodingBrotli:
23-
if(!RunTime.IsWindows)
24-
{
25-
throw new PlatformNotSupportedException("BrotliSharpLib currently supports only Windows.");
26-
}
27-
2823
return new BrotliSharpLib.BrotliStream(stream, CompressionMode.Decompress, leaveOpen);
2924
default:
3025
throw new Exception($"Unsupported decompression mode: {type}");

0 commit comments

Comments
 (0)