Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
commit
e46ec91a94
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue