mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix typo
Should be checking the returned headers, not the sent ones.
This commit is contained in:
parent
2eac23a0b3
commit
dad8f9a0ce
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ module YoutubeAPI
|
||||||
# - https://github.com/iv-org/invidious/issues/2612
|
# - https://github.com/iv-org/invidious/issues/2612
|
||||||
# - https://github.com/crystal-lang/crystal/issues/11354
|
# - https://github.com/crystal-lang/crystal/issues/11354
|
||||||
#
|
#
|
||||||
case headers["Content-Encoding"]?
|
case response.headers["Content-Encoding"]?
|
||||||
when "gzip"
|
when "gzip"
|
||||||
body = Compress::Gzip::Reader.new(response.body_io, sync_close: true)
|
body = Compress::Gzip::Reader.new(response.body_io, sync_close: true)
|
||||||
when "deflate"
|
when "deflate"
|
||||||
|
|
Loading…
Reference in a new issue