From cf619f24a96820a8a54ec47426dc41164db76bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Thu, 1 Jul 2021 18:13:06 +0200 Subject: [PATCH] Remove workaround for kemalcr/kemal/issues/575 (#2230) Full URL of the issue: https://github.com/kemalcr/kemal/issues/575 --- src/invidious/helpers/helpers.cr | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index 7353f2d9..072bdf95 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -700,26 +700,6 @@ def proxy_file(response, env) end end -# See https://github.com/kemalcr/kemal/pull/576 -class HTTP::Server::Response::Output - def close - return if closed? - - unless response.wrote_headers? - response.content_length = @out_count - end - - ensure_headers_written - - super - - if @chunked - @io << "0\r\n\r\n" - @io.flush - end - end -end - class HTTP::Client::Response def pipe(io) HTTP.serialize_body(io, headers, @body, @body_io, @version)