Use the X-Request-ID request header when request_id present

pull/15778/head
Rafa de la Torre 4 years ago
parent f2949a35a2
commit cda40d2cb1

@ -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

Loading…
Cancel
Save