Commit 9a5bdca3 authored by justcoding121's avatar justcoding121

add brotli to list of supported compressions

parent 0d5a98d9
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;
namespace Titanium.Web.Proxy.Shared namespace Titanium.Web.Proxy.Shared
{ {
...@@ -25,8 +26,9 @@ namespace Titanium.Web.Proxy.Shared ...@@ -25,8 +26,9 @@ namespace Titanium.Web.Proxy.Shared
internal static readonly HashSet<string> ProxySupportedCompressions = internal static readonly HashSet<string> ProxySupportedCompressions =
new HashSet<string>(StringComparer.OrdinalIgnoreCase) new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{ {
"gzip", KnownHeaders.ContentEncodingGzip,
"deflate" KnownHeaders.ContentEncodingDeflate,
KnownHeaders.ContentEncodingBrotli
}; };
internal static readonly Regex CNRemoverRegex = internal static readonly Regex CNRemoverRegex =
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Portable.BouncyCastle" version="1.8.2" targetFramework="net45" />
<package id="StreamExtended" version="1.0.179" targetFramework="net45" />
</packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment