| ... | @@ -167,9 +167,7 @@ module API |
... | @@ -167,9 +167,7 @@ module API |
|
|
blob = Gitlab::Git::Blob.find(repo, commit.id, params[:filepath])
|
|
blob = Gitlab::Git::Blob.find(repo, commit.id, params[:filepath])
|
|
|
not_found! "File" unless blob
|
|
not_found! "File" unless blob
|
|
|
|
|
|
|
|
env['api.format'] = :txt
|
|
content_type 'text/plain'
|
|
|
|
|
|
|
|
content_type blob.mime_type
|
|
|
|
|
present blob.data
|
|
present blob.data
|
|
|
end
|
|
end
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |