summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunbin <bins@vmware.com>2018-05-08 14:43:53 +0800
committersunbin <bins@vmware.com>2018-05-08 15:03:30 +0800
commit69a315e508da7716c0c01caeaafd3da5a3d20599 (patch)
treefeb7643eb85a6cd566a4bc9229c0223e728f2b23
parent4790d64a608118f48a2eb62620996a1e36efd5a2 (diff)
Pass header property in forward
Change-Id: I5d937982c5b18ac1a83b62717adb460a5d988cf6 Issue-ID: MULTICLOUD-225 Signed-off-by: sunbin <bins@vmware.com>
-rw-r--r--multivimbroker/multivimbroker/forwarder/views.py14
1 files changed, 8 insertions, 6 deletions
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 @@ class Forward(BaseServer):
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