From 8215720b4983b9c70ed1749ab9f8fbdcf18c991e Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Thu, 30 Apr 2015 16:05:58 +0200 Subject: [PATCH] v3: don't fall back to v2 on 404 --- lib/travis/api/v3/router.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/travis/api/v3/router.rb b/lib/travis/api/v3/router.rb index 74247095..1c89ffd4 100644 --- a/lib/travis/api/v3/router.rb +++ b/lib/travis/api/v3/router.rb @@ -1,6 +1,5 @@ module Travis::API::V3 class Router - CASCADE = { 'X-Cascade'.freeze => 'pass'.freeze } include Travis::API::V3 attr_accessor :routes @@ -22,8 +21,7 @@ module Travis::API::V3 render(result, env_params, env) rescue Error => error result = Result.new(access_control, :error, error) - headers = error.status == 404 ? CASCADE : {} - V3.response(result.render(env_params, env), headers, status: error.status) + V3.response(result.render(env_params, env), {}, status: error.status) end def render(result, env_params, env)