summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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