Remove of gzip header w/ use_quic config

Continuation of b0f127d4d8
This commit is contained in:
syeopite 2021-11-12 03:52:50 -08:00
parent 6ec4dcfafd
commit 65fbdbff6a
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
1 changed files with 3 additions and 1 deletions

View File

@ -412,7 +412,9 @@ module YoutubeAPI
#
# https://github.com/crystal-lang/crystal/issues/11252#issuecomment-929594741
{% unless flag?(:disable_quic) %}
headers["Accept-Encoding"] = "gzip"
if CONFIG.use_quic
headers["Accept-Encoding"] = "gzip"
end
{% end %}
# Logging