fix prefix detection
This commit is contained in:
parent
5045710487
commit
b03e9c5559
|
@ -18,7 +18,7 @@ class Travis::Api::App
|
||||||
def endpoint
|
def endpoint
|
||||||
return @endpoint if defined? @endpoint and @endpoint
|
return @endpoint if defined? @endpoint and @endpoint
|
||||||
return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present?
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user