Archive with content-length header

This commit is contained in:
ahmyi 2014-07-03 11:05:51 +08:00
parent dce6cb2d84
commit 4d051e987f
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Projects::RepositoriesController < Projects::ApplicationController
if file_path
# Send file to user
response.headers['Content-Length'] = File.Open(file_path).size.to_s
response.headers["Content-Length"] = File.Open(file_path).size.to_s
send_file file_path
else
render_404