From 8e1a855812f082547769b437cfef06a2284b6117 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 16 Jul 2013 19:30:16 +0200 Subject: [PATCH] Don't set content type to JSON by default --- lib/travis/api/app/endpoint.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/travis/api/app/endpoint.rb b/lib/travis/api/app/endpoint.rb index 11c82afc..990c06dc 100644 --- a/lib/travis/api/app/endpoint.rb +++ b/lib/travis/api/app/endpoint.rb @@ -14,7 +14,6 @@ class Travis::Api::App # TODO hmmm? before { flash.clear } - before { content_type :json } error(ActiveRecord::RecordNotFound, Sinatra::NotFound) { not_found } not_found { content_type =~ /json/ ? { 'file' => 'not found' } : 'file not found' }