From 47e2ea565de86b35730731575ce25d8e5a2d0394 Mon Sep 17 00:00:00 2001 From: Akama Aka Date: Tue, 11 Jun 2024 10:30:47 +0200 Subject: [PATCH] Added more request id header support Added request-id Support for: * Oracle Cloud * MS Azure * Google Cloud Signed-off-by: Akama Aka --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index e807c71..46f7fed 100644 --- a/server.js +++ b/server.js @@ -82,7 +82,7 @@ module.exports = async function (fastify, opts) { console.error(err); } // Inject the CloudFlare Ray ID - let res = data.replace("__implement-ray-id__", req.headers["cf-ray"] || req.headers["X-Amz-Cf-Id"] || req.headers["akamai-x-get-request-id"] || req.id); + let res = data.replace("__implement-ray-id__", req.headers["cf-ray"] || req.headers["X-Amz-Cf-Id"] || req.headers["akamai-x-get-request-id"] || req.headers["x-appengine-request-log-id"] || req.headers["requestId"] || req.headers["opc-request-id"] || req.id); // Inject the JavaScript Sources at the bottom of the Body res = res.replace('__implement_body_script__', ''); // Inject the Styling @@ -144,4 +144,4 @@ module.exports = async function (fastify, opts) { } } }) -} \ No newline at end of file +}