diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-03-31 13:24:14 +0200 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-04-20 11:53:43 +0200 |
commit | 360bd831bfe40f3c44e35d884c32fa49fede87ab (patch) | |
tree | cac8e760eca76dd0cae8dd04091fda6f715c77e8 /lib/ci/api/api.rb | |
parent | 38a1378e631994ded578a6cfafd0648d22fdf263 (diff) | |
download | gitlab-ce-360bd831bfe40f3c44e35d884c32fa49fede87ab.tar.gz |
Add range checking
Diffstat (limited to 'lib/ci/api/api.rb')
-rw-r--r-- | lib/ci/api/api.rb | 2 |
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 |