summaryrefslogtreecommitdiffstats
path: root/gvnfmadapter
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-31 16:16:17 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-31 16:16:46 +0800
commitd400185fe6d3738e9b30f7cffc150a425761a25b (patch)
tree47635fb4af72050b4f63f1e548aa5e1ad2eccad4 /gvnfmadapter
parent802e76b8013e12d765882814843aa5bd367749c1 (diff)
fix gvnfm middleware
Change-Id: I9a1574d8f37bf1a3958ab4160e53a96f71b0520c Issue-ID: VFC-1322 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'gvnfmadapter')
-rw-r--r--gvnfmadapter/driver/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gvnfmadapter/driver/middleware.py b/gvnfmadapter/driver/middleware.py
index 707589a..a4def17 100644
--- a/gvnfmadapter/driver/middleware.py
+++ b/gvnfmadapter/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)