Commit 883f465a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix snippet raw content being escaped

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment