Should be checking the returned headers, not the sent ones.
pull/2623/head
Samantaz Fox 2021-11-16 20:39:26 +01:00 zatwierdzone przez GitHub
rodzic 2eac23a0b3
commit dad8f9a0ce
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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"