[SOLVED] Response Header Content-Length
Created by: ahmyi
Trying to get content-length header for archive. Tried adding to app/controllers/projects/repositories_controller.rb
response.headers['Content-Length'] = file_path.size.to_s
but return length is incorrect. Is there a way to get length of content?