diff options
author | ahmyi <cryptoamity@gmail.com> | 2014-07-03 07:05:51 +0400 |
---|---|---|
committer | ahmyi <cryptoamity@gmail.com> | 2014-07-03 07:05:51 +0400 |
commit | 4d051e987fb2071bea2f3ee00d8fc16b56648204 (patch) | |
tree | bd3441f66b659eb874c9aaf3db813c8bff785eed /app/controllers | |
parent | dce6cb2d8448e6c59285998f7fc54e1cb23d269a (diff) |
Archive with content-length header
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/repositories_controller.rb b/app/controllers/projects/repositories_controller.rb index c61d2fb8719..a1da6361234 100644 --- a/app/controllers/projects/repositories_controller.rb +++ b/app/controllers/projects/repositories_controller.rb @@ -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 |