提交 883f465a 编写于 作者: D Dmitriy Zaporozhets

Fix snippet raw content being escaped

上级 beb0adf2
......@@ -113,6 +113,8 @@ module API
# GET /projects/:id/snippets/:snippet_id/raw
get ":id/snippets/:snippet_id/raw" do
@snippet = user_project.snippets.find(params[:snippet_id])
env['api.format'] = :txt
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.
先完成此消息的编辑!
想要评论请 注册