Skip to content

Commit

Permalink
Remove workaround for kemalcr/kemal/issues/575 (#2230)
Browse files Browse the repository at this point in the history
Full URL of the issue: kemalcr/kemal#575
  • Loading branch information
unixfox authored Jul 1, 2021
1 parent fd313f0 commit cf619f2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/invidious/helpers/helpers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf619f2

Please sign in to comment.