Skip to content
Snippets Groups Projects

CentOS 6.4 install GitLab 6 0 stable ssh Auth fail

Closed gitlab-qa-bot requested to merge 6-0-stable into master
16 files
+ 282
104
Compare changes
  • Side-by-side
  • Inline
Files
16
@@ -11,9 +11,17 @@ class Projects::RawController < Projects::ApplicationController
@@ -11,9 +11,17 @@ class Projects::RawController < Projects::ApplicationController
@blob = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, @path)
@blob = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, @path)
if @blob.exists?
if @blob.exists?
 
type = if @blob.mime_type =~ /html|javascript/
 
'text/plain; charset=utf-8'
 
else
 
@blob.mime_type
 
end
 
 
headers['X-Content-Type-Options'] = 'nosniff'
 
send_data(
send_data(
@blob.data,
@blob.data,
type: @blob.mime_type,
type: type,
disposition: 'inline',
disposition: 'inline',
filename: @blob.name
filename: @blob.name
)
)
Loading