diff --git a/app/controllers/projects/repositories_controller.rb b/app/controllers/projects/repositories_controller.rb index 28fed8b0e3f..c61d2fb8719 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