Commit 058b71ed authored by Nihad Abbasov's avatar Nihad Abbasov

API: set content type for raw snippet

parent 853ca746
...@@ -141,6 +141,7 @@ module Gitlab ...@@ -141,6 +141,7 @@ module Gitlab
# GET /projects/:id/snippets/:snippet_id/raw # GET /projects/:id/snippets/:snippet_id/raw
get ":id/snippets/:snippet_id/raw" do get ":id/snippets/:snippet_id/raw" do
@snippet = user_project.snippets.find(params[:snippet_id]) @snippet = user_project.snippets.find(params[:snippet_id])
content_type 'text/plain'
present @snippet.content present @snippet.content
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment