Pass header property in forward
Change-Id: I5d937982c5b18ac1a83b62717adb460a5d988cf6
Issue-ID: MULTICLOUD-225
Signed-off-by: sunbin <bins@vmware.com>
diff --git a/multivimbroker/multivimbroker/forwarder/views.py b/multivimbroker/multivimbroker/forwarder/views.py
index 89e222a..1e57d0e 100644
--- a/multivimbroker/multivimbroker/forwarder/views.py
+++ b/multivimbroker/multivimbroker/forwarder/views.py
@@ -131,31 +131,33 @@
def get(self, request, vimid):
- return self.send(vimid, request.get_full_path(), request.body, "GET")
+ return self.send(vimid, request.get_full_path(), request.body, "GET",
+ headers=originHeaders(request))
def post(self, request, vimid):
return self.send(vimid, request.get_full_path(), request.body, "POST",
- headers=None)
+ headers=originHeaders(request))
def patch(self, request, vimid):
return self.send(vimid, request.get_full_path(), request.body, "PATCH",
- headers=None)
+ headers=originHeaders(request))
def delete(self, request, vimid):
return self.send(vimid, request.get_full_path(), request.body,
- "DELETE", headers=None)
+ "DELETE", headers=originHeaders(request))
def head(self, request, vimid):
- return self.send(vimid, request.get_full_path(), request.body, "HEAD")
+ return self.send(vimid, request.get_full_path(), request.body, "HEAD",
+ headers=originHeaders(request))
def put(self, request, vimid):
return self.send(vimid, request.get_full_path(), request.body, "PUT",
- headers=None)
+ headers=originHeaders(request))
# Multipart view