From 360bd831bfe40f3c44e35d884c32fa49fede87ab Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Thu, 31 Mar 2016 13:24:14 +0200 Subject: Add range checking --- lib/ci/api/api.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ci/api/api.rb') diff --git a/lib/ci/api/api.rb b/lib/ci/api/api.rb index 4e85d2c3c74..353c4ddebf8 100644 --- a/lib/ci/api/api.rb +++ b/lib/ci/api/api.rb @@ -23,6 +23,8 @@ module Ci rack_response({ 'message' => '500 Internal Server Error' }, 500) end + content_type :txt, 'text/plain' + content_type :json, 'application/json' format :json helpers ::Ci::API::Helpers -- cgit v1.2.1