summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-31 15:47:56 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-31 15:48:09 +0800
commit028b3145d19b9eefddd02714f112ff31fcb14d6d (patch)
tree373a51246ac2c8894521df67ffe9664ad9365b7b
parent8b9c7dc264fcd762585d8f0d97b08bcf9bdf8efc (diff)
fix vnfres middleware
Change-Id: Ia0e3090a08a753c676a42522e29bbaadcf594e55 Issue-ID: VFC-1322 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--res/res/middleware.py4
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)