mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 16:29:10 -04:00
Mute unbuffered_flush IOError exception
This commit is contained in:
parent
cf619f24a9
commit
16a96da690
@ -700,6 +700,16 @@ def proxy_file(response, env)
|
||||
end
|
||||
end
|
||||
|
||||
class HTTP::Server::Response
|
||||
class Output
|
||||
private def unbuffered_flush
|
||||
@io.flush
|
||||
rescue ex : IO::Error
|
||||
unbuffered_close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class HTTP::Client::Response
|
||||
def pipe(io)
|
||||
HTTP.serialize_body(io, headers, @body, @body_io, @version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user