Pass header property in forward
[multicloud/framework.git] / multivimbroker / multivimbroker / forwarder / views.py
index 89e222a..1e57d0e 100644 (file)
@@ -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

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use