mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Remove workaround for kemalcr/kemal/issues/575 (#2230)
Full URL of the issue: https://github.com/kemalcr/kemal/issues/575
This commit is contained in:
parent
fd313f0d66
commit
cf619f24a9
1 changed files with 0 additions and 20 deletions
|
@ -700,26 +700,6 @@ def proxy_file(response, env)
|
||||||
end
|
end
|
||||||
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
|
class HTTP::Client::Response
|
||||||
def pipe(io)
|
def pipe(io)
|
||||||
HTTP.serialize_body(io, headers, @body, @body_io, @version)
|
HTTP.serialize_body(io, headers, @body, @body_io, @version)
|
||||||
|
|
Loading…
Reference in a new issue