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

Commit 9a5bdca

Browse files
committed
add brotli to list of supported compressions
1 parent 0d5a98d commit 9a5bdca

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/Titanium.Web.Proxy/Shared/ProxyConstants.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text.RegularExpressions;
4+
using Titanium.Web.Proxy.Http;
45

56
namespace Titanium.Web.Proxy.Shared
67
{
@@ -25,8 +26,9 @@ internal class ProxyConstants
2526
internal static readonly HashSet<string> ProxySupportedCompressions =
2627
new HashSet<string>(StringComparer.OrdinalIgnoreCase)
2728
{
28-
"gzip",
29-
"deflate"
29+
KnownHeaders.ContentEncodingGzip,
30+
KnownHeaders.ContentEncodingDeflate,
31+
KnownHeaders.ContentEncodingBrotli
3032
};
3133

3234
internal static readonly Regex CNRemoverRegex =

src/Titanium.Web.Proxy/packages.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)