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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-08 15:55:20 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-08 15:55:20 +0400
commit593e262e40329d2feb9bea1592c4ee7b6bcefac2 (patch)
treef4dc53cc2713a60c38c761e8a1429b75227b92a5 /app/controllers/projects/repositories_controller.rb
parent85a15b0e224422965690220bbd51fe232a88fcd0 (diff)
Fix 500 on repo archive download
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 a1da6361234..f76ddb34bc4 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