From 65fbdbff6af2869dde94abb3b0b9f65286d56500 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 12 Nov 2021 03:52:50 -0800 Subject: [PATCH] Remove of gzip header w/ use_quic config Continuation of b0f127d4d89bc1a001c9ad37b27eec8d9d8e7961 --- src/invidious/yt_backend/youtube_api.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/invidious/yt_backend/youtube_api.cr b/src/invidious/yt_backend/youtube_api.cr index 8904b589..27f25036 100644 --- a/src/invidious/yt_backend/youtube_api.cr +++ b/src/invidious/yt_backend/youtube_api.cr @@ -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