class Rack::CommonLogger

def extract_content_length(headers)

include it in the logged data.
Attempt to determine the content length for the response to
def extract_content_length(headers)
  value = headers[CONTENT_LENGTH]
  !value || value.to_s == '0' ? '-' : value
end