mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-13 16:18:29 +00: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
|
||||||
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
|
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 New Issue
Block a user