提交 058b71ed 编写于 作者: N Nihad Abbasov

API: set content type for raw snippet

上级 853ca746
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册