|
|
|
@ -129,6 +129,8 @@ module Carto
|
|
|
|
|
'content-type': 'application/json',
|
|
|
|
|
'host': domain(username)
|
|
|
|
|
}
|
|
|
|
|
headers = request_id ? @headers.merge('X-Request-ID': request_id) : @headers
|
|
|
|
|
headers
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def domain(username)
|
|
|
|
@ -139,6 +141,10 @@ module Carto
|
|
|
|
|
CartoDB.subdomainless_urls? ? config_domain : "#{username}.#{config_domain}"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def request_id
|
|
|
|
|
Carto::CurrentRequest.request_id
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def port
|
|
|
|
|
@port ||= Cartodb.get_config(:tiler, 'internal', 'port')
|
|
|
|
|
end
|
|
|
|
|