diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 15:42:32 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 15:42:47 +0800 |
commit | 710cc80d5dd8cc200a69ba3c12826e0401d2a0ee (patch) | |
tree | 248cf664eb54238a194b12c485500908cb13ad66 /mgr | |
parent | f6a5ff84bb5d42e2ee8d6952297aea340502d8d1 (diff) |
fix vnfmgr middleware
Change-Id: I0cd166e41acec6c13c1dcfa04f6527967794123b
Issue-ID: VFC-1322
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'mgr')
-rw-r--r-- | mgr/mgr/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mgr/mgr/middleware.py b/mgr/mgr/middleware.py index 10e8ba6..2172744 100644 --- a/mgr/mgr/middleware.py +++ b/mgr/mgr/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) |