diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-03 13:52:00 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-03 13:52:00 +0300 |
commit | e46ec91a942fc0773279999debe661f493999500 (patch) | |
tree | c948f091bd3b33de2d7a0f7ef7184b9613e6a0a6 | |
parent | dcd14c0af0eb191076a4e89785d54273e5521a45 (diff) | |
parent | dbeb4d7b3a5d2cf2e9f87d5922c9c7b0c16a9b82 (diff) | |
download | gitlab-ce-e46ec91a942fc0773279999debe661f493999500.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
-rw-r--r-- | app/controllers/projects/repositories_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/repositories_controller.rb b/app/controllers/projects/repositories_controller.rb index 28fed8b0e3f..a1da6361234 100644 --- a/app/controllers/projects/repositories_controller.rb +++ b/app/controllers/projects/repositories_controller.rb @@ -22,6 +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 send_file file_path else render_404 |