class Rack::ContentLength

Sets the Content-Length header on responses that do not specify a Content-Length or Transfer-Encoding header. Note that this does not fix responses that have an invalid Content-Length header specified.