summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-31 15:37:47 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-31 15:37:59 +0800
commitd316c955081c3137fb3c9ca4835555a9b3baa346 (patch)
tree28b93587f4047b0a9daac27a4c1c57707c770cf7
parent2471ca01a32a6f2cf2104be21debd757dd053643 (diff)
fix nslcm middleware
Change-Id: I351b8b0907411107f3dca4b29679a8b5c8dcf26e Issue-ID: VFC-1322 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--lcm/lcm/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/middleware.py b/lcm/lcm/middleware.py
index 7bf6868f..f10a8d7c 100644
--- a/lcm/lcm/middleware.py
+++ b/lcm/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)