diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 16:23:57 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-31 16:24:08 +0800 |
commit | f0ada4fa4c8d276e957dfafb9e7166c8e21495d1 (patch) | |
tree | 578fb65261b667643ca0837ffd1c4c3cfec2ad5b /zte | |
parent | 4d6d05f9f9040090c8b22e55073c39a0d91f8078 (diff) |
fix svnfm middleware
Change-Id: I142ba0dc31f2fa6b3f001b62d9ea53a2adfed401
Issue-ID: VFC-1322
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'zte')
-rw-r--r-- | zte/vmanager/driver/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zte/vmanager/driver/middleware.py b/zte/vmanager/driver/middleware.py index 0b876b3c..4efaa8be 100644 --- a/zte/vmanager/driver/middleware.py +++ b/zte/vmanager/driver/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) |