2017-02-04 10:06:43 +00:00
|
|
|
class HTTP::Server::Response
|
|
|
|
class Output
|
|
|
|
def close
|
2019-08-30 11:32:23 +00:00
|
|
|
# ameba:disable Style/NegatedConditionsInUnless
|
2019-06-18 15:03:32 +00:00
|
|
|
unless response.wrote_headers? && !response.headers.has_key?("Content-Range")
|
2017-02-04 10:06:43 +00:00
|
|
|
response.content_length = @out_count
|
|
|
|
end
|
|
|
|
|
|
|
|
ensure_headers_written
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|