summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multivimbroker/multivimbroker/pub/utils/syscomm.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/multivimbroker/multivimbroker/pub/utils/syscomm.py b/multivimbroker/multivimbroker/pub/utils/syscomm.py
index 7516d4b..7afb966 100644
--- a/multivimbroker/multivimbroker/pub/utils/syscomm.py
+++ b/multivimbroker/multivimbroker/pub/utils/syscomm.py
@@ -44,6 +44,14 @@ def originHeaders(request):
headers[key[5:].replace('_', '-')] = value
elif key in ('CONTENT_TYPE', 'CONTENT_LENGTH'):
headers[key.replace('_', '-')] = value
+ elif key.lower() in ('project', 'project_id', 'project_name',
+ 'tenant', 'tenant_id', 'tenant_name'):
+ # support API to specify project other than the default one
+ headers[key] = value
+ # elif key.lower() in ('x-auth-token',
+ # 'http_x_auth_token', 'x_auth_token'):
+ # # pass the token to plugins
+ # headers["X-Auth-Token"] = value
return headers