API: set content type for raw snippet
This commit is contained in:
parent
853ca74620
commit
058b71edf3
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ module Gitlab
|
|||
# GET /projects/:id/snippets/:snippet_id/raw
|
||||
get ":id/snippets/:snippet_id/raw" do
|
||||
@snippet = user_project.snippets.find(params[:snippet_id])
|
||||
content_type 'text/plain'
|
||||
present @snippet.content
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue