Skip to content
Snippets Groups Projects
Commit 883f465a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix snippet raw content being escaped

parent beb0adf2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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