diff options
-rw-r--r-- | res/res/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res/middleware.py b/res/res/middleware.py index 8aa9faf..386deaf 100644 --- a/res/res/middleware.py +++ b/res/res/middleware.py @@ -41,10 +41,10 @@ class LogContextMiddleware(object): def process_request(self, request): # Fetch TRANSACTIONID Id and pass to plugin server - ReqeustID = request.META.get("HTTP_X_TRANSACTIONID", None) + ReqeustID = request.META.get("HTTP_X_ONAP-RequestID", None) if ReqeustID is None: ReqeustID = uuid.uuid3(uuid.NAMESPACE_URL, SERVICE_NAME) - request.META["HTTP_X_TRANSACTIONID"] = ReqeustID + request.META["HTTP_X_ONAP-RequestID"] = ReqeustID MDC.put("requestID", ReqeustID) # generate the unique id InovocationID = uuid.uuid3(uuid.NAMESPACE_DNS, SERVICE_NAME) |