From b03e9c55591c945032fe92b5f8e2deaaef93c2f6 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Wed, 14 Jan 2015 14:22:10 +0100 Subject: [PATCH] fix prefix detection --- lib/travis/api/app/middleware/skylight/actual.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/api/app/middleware/skylight/actual.rb b/lib/travis/api/app/middleware/skylight/actual.rb index 082cb34c..eb140a0d 100644 --- a/lib/travis/api/app/middleware/skylight/actual.rb +++ b/lib/travis/api/app/middleware/skylight/actual.rb @@ -18,7 +18,7 @@ class Travis::Api::App def endpoint return @endpoint if defined? @endpoint and @endpoint return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present? - @endpoint = Object.const_get(headers['X-Endpoint']) + headers['X-Pattern'] + @endpoint = Object.const_get(headers['X-Endpoint']).prefix + headers['X-Pattern'] end end end