summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-31 10:02:14 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-31 10:02:29 +0800
commit1f00af02a410ccf806e59812ec7dea366b50d7ac (patch)
tree70bc04f31154da275ec53cf9609edce14f6c01f7
parentbb14f9a3bfc2add635fe1796147c43e0f8ecc624 (diff)
fix nslcm middleware
Change-Id: Ib73201874e129cf397cd6f1ca4bc6422ecfbf998 Issue-ID: VFC-1322 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--lcm/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/middleware.py b/lcm/middleware.py
index 7bf6868f..f10a8d7c 100644
--- a/lcm/middleware.py
+++ b/lcm/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)