Should be checking the returned headers, not the sent ones.
このコミットが含まれているのは:
Samantaz Fox 2021-11-16 20:39:26 +01:00 committed by GitHub
コミット dad8f9a0ce
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -431,7 +431,7 @@ module YoutubeAPI
# - https://github.com/iv-org/invidious/issues/2612
# - https://github.com/crystal-lang/crystal/issues/11354
#
case headers["Content-Encoding"]?
case response.headers["Content-Encoding"]?
when "gzip"
body = Compress::Gzip::Reader.new(response.body_io, sync_close: true)
when "deflate"