summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-31 16:05:49 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-31 16:05:59 +0800
commita2544b69d389949ee6cbe6c23348ccb21f928535 (patch)
tree5a033aac2a956bcf5a2e48a18af88221c4a70906
parent6d17261e8df4da9633c2efde7139cbf6d284d11a (diff)
fix catalog middleware
Change-Id: Ice99b2557936bd4753ade53ecfc1b0bbc0230720 Issue-ID: VFC-1322 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--catalog/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog/middleware.py b/catalog/middleware.py
index 0617fead..cd6aa8b2 100644
--- a/catalog/middleware.py
+++ b/catalog/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)