summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorÉmilien Devos <contact@emiliendevos.be>2021-07-01 18:13:06 +0200
committerGitHub <noreply@github.com>2021-07-01 16:13:06 +0000
commitcf619f24a96820a8a54ec47426dc41164db76bc9 (patch)
tree26565f82cc05170ed347f786721c8494f9447870 /src
parentfd313f0d66fe8b2a745422669e46a55b86d9c3a9 (diff)
downloadinvidious-cf619f24a96820a8a54ec47426dc41164db76bc9.tar.gz
invidious-cf619f24a96820a8a54ec47426dc41164db76bc9.tar.bz2
invidious-cf619f24a96820a8a54ec47426dc41164db76bc9.zip
Remove workaround for kemalcr/kemal/issues/575 (#2230)
Full URL of the issue: https://github.com/kemalcr/kemal/issues/575
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/helpers.cr20
1 files changed, 0 insertions, 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)