This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -2006,16 +2006,29 @@ public static class HttpMethods
2006
2006
2007
2007
public static class CompressionTypes
2008
2008
{
2009
- public static readonly string [ ] AllCompressionTypes = { Deflate , GZip } ;
2009
+ public static readonly string [ ] AllCompressionTypes =
2010
+ {
2011
+ #if NET6_0_OR_GREATER
2012
+ Brotli ,
2013
+ #endif
2014
+ Deflate,
2015
+ GZip ,
2016
+ } ;
2010
2017
2011
2018
public const string Default = Deflate ;
2019
+ #if NET6_0_OR_GREATER
2012
2020
public const string Brotli = "br" ;
2021
+ #endif
2013
2022
public const string Deflate = "deflate" ;
2014
2023
public const string GZip = "gzip" ;
2015
2024
2016
2025
public static bool IsValid ( string compressionType )
2017
2026
{
2018
- return compressionType is Deflate or GZip or Brotli ;
2027
+ return compressionType is Deflate or GZip
2028
+ #if NET6_0_OR_GREATER
2029
+ or Brotli
2030
+ #endif
2031
+ ;
2019
2032
}
2020
2033
2021
2034
public static void AssertIsValid ( string compressionType )
@@ -2031,7 +2044,9 @@ public static string GetExtension(string compressionType)
2031
2044
{
2032
2045
switch ( compressionType )
2033
2046
{
2047
+ #if NET6_0_OR_GREATER
2034
2048
case Brotli :
2049
+ #endif
2035
2050
case Deflate :
2036
2051
case GZip:
2037
2052
return "." + compressionType ;
You can’t perform that action at this time.
0 commit comments