summaryrefslogtreecommitdiff
path: root/lib/ci/api/api.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-03-31 13:24:14 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2016-04-20 11:53:43 +0200
commit360bd831bfe40f3c44e35d884c32fa49fede87ab (patch)
treecac8e760eca76dd0cae8dd04091fda6f715c77e8 /lib/ci/api/api.rb
parent38a1378e631994ded578a6cfafd0648d22fdf263 (diff)
downloadgitlab-ce-360bd831bfe40f3c44e35d884c32fa49fede87ab.tar.gz
Add range checking
Diffstat (limited to 'lib/ci/api/api.rb')
-rw-r--r--lib/ci/api/api.rb2
1 files changed, 2 insertions, 0 deletions
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