Fix 500 on repo archive download

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-08 14:55:20 +03:00
parent 85a15b0e22
commit 593e262e40
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 1 deletions

View File

@ -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