Skip to content
Snippets Groups Projects
Commit 058b71ed authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

API: set content type for raw snippet

parent 853ca746
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment