Do not early return from HTTP::Server::Response::Output.close. Revert what Ameba broke

This commit is contained in:
Anton Maminov 2019-06-18 18:03:32 +03:00 committed by Serdar Dogruyol
parent f3d02e60af
commit e3544a86bf
2 changed files with 21 additions and 12 deletions

View file

@ -1,7 +1,7 @@
class HTTP::Server::Response
class Output
def close
if !response.wrote_headers? && response.headers.has_key?("Content-Range")
unless response.wrote_headers? && !response.headers.has_key?("Content-Range")
response.content_length = @out_count
end