From 7db3e6fbe024e23012c1e8ebcbad9714cf57b37d Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Tue, 19 Sep 2023 17:36:47 +0100 Subject: [PATCH] Backward compatibility - not supported before Signed-off-by: Gavin Halliday --- esp/bindings/http/platform/httptransport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esp/bindings/http/platform/httptransport.cpp b/esp/bindings/http/platform/httptransport.cpp index 6ff68f380e8..7491e6f2703 100644 --- a/esp/bindings/http/platform/httptransport.cpp +++ b/esp/bindings/http/platform/httptransport.cpp @@ -1942,9 +1942,13 @@ void CHttpRequest::updateContext() m_context->setAcceptLanguage(acceptLanguage.str()); StringBuffer callerId, globalId; getHeader(HTTP_HEADER_HPCC_GLOBAL_ID, globalId); + if (globalId.isEmpty()) + getHeader("hpcc-global-id", globalId); if(globalId.length()) m_context->setGlobalId(globalId); getHeader(HTTP_HEADER_HPCC_CALLER_ID, callerId); + if (callerId.isEmpty()) + getHeader("hpcc-caller-id", callerId); if(callerId.length()) m_context->setCallerId(callerId); }