fix catalog middleware 04/83804/1
authoryangyan <yangyanyj@chinamobile.com>
Sun, 31 Mar 2019 08:05:49 +0000 (16:05 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Sun, 31 Mar 2019 08:05:59 +0000 (16:05 +0800)
Change-Id: Ice99b2557936bd4753ade53ecfc1b0bbc0230720
Issue-ID: VFC-1322
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
catalog/middleware.py

index 0617fea..cd6aa8b 100644 (file)
@@ -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)