Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorahmyi <cryptoamity@gmail.com>2014-07-03 07:05:51 +0400
committerahmyi <cryptoamity@gmail.com>2014-07-03 07:05:51 +0400
commit4d051e987fb2071bea2f3ee00d8fc16b56648204 (patch)
treebd3441f66b659eb874c9aaf3db813c8bff785eed /app/controllers/projects/repositories_controller.rb
parentdce6cb2d8448e6c59285998f7fc54e1cb23d269a (diff)
Archive with content-length header
Diffstat (limited to 'app/controllers/projects/repositories_controller.rb')
-rw-r--r--app/controllers/projects/repositories_controller.rb2
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