Invidious is an alternative front-end to YouTube
Update fix for HTTP Client
Omar Roth53fbb257b97d
diff --git a/src/invidious/helpers/handlers.cr b/src/invidious/helpers/handlers.crindex bc1a3896..4e73df51 100644--- a/src/invidious/helpers/handlers.cr+++ b/src/invidious/helpers/handlers.cr@@ -199,7 +199,7 @@ class DenyFrame < Kemal::Handlerendend-# Temp fix for https://github.com/crystal-lang/crystal/issues/7383+# Temp fixes for https://github.com/crystal-lang/crystal/issues/7383class HTTP::UnknownLengthContentdef read_byteensure_send_continue@@ -209,3 +209,18 @@ class HTTP::UnknownLengthContent@io.read_byteendend++class HTTP::Client+ private def handle_response(response)+ if @socket.is_a?(OpenSSL::SSL::Socket::Client)+ close unless response.keep_alive? || @socket.as(OpenSSL::SSL::Socket::Client).@in_buffer_rem.empty?+ if @socket.as(OpenSSL::SSL::Socket::Client).@in_buffer_rem.empty?+ @socket = nil+ end+ else+ close unless response.keep_alive?+ end++ response+ end+end