Remove workaround for kemalcr/kemal/issues/575 (#2230)

Full URL of the issue: https://github.com/kemalcr/kemal/issues/575
このコミットが含まれているのは:
Émilien Devos 2021-07-01 18:13:06 +02:00 committed by GitHub
コミット cf619f24a9
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更0行の追加20行の削除

ファイルの表示

@ -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)