From 593e262e40329d2feb9bea1592c4ee7b6bcefac2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 8 Jul 2014 14:55:20 +0300 Subject: [PATCH] Fix 500 on repo archive download Signed-off-by: Dmitriy Zaporozhets --- app/controllers/projects/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/repositories_controller.rb b/app/controllers/projects/repositories_controller.rb index a1da636123..f76ddb34bc 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