Pass header property in forward 35/46535/3
authorsunbin <bins@vmware.com>
Tue, 8 May 2018 06:43:53 +0000 (14:43 +0800)
committersunbin <bins@vmware.com>
Tue, 8 May 2018 07:03:30 +0000 (15:03 +0800)
Change-Id: I5d937982c5b18ac1a83b62717adb460a5d988cf6
Issue-ID: MULTICLOUD-225
Signed-off-by: sunbin <bins@vmware.com>
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