Example #1
0
 def get_restore_http_response(self):
     """
     Returns restore XML as a streaming http response
     """
     payload = self._get_restore_xml()
     headers = {
         'Content-Length': self.content_length,
         'Content-Type': 'text/xml'
     }
     return stream_response(payload, headers)
Example #2
0
 def get_restore_http_response(self):
     """
     Returns restore XML as a streaming http response
     """
     payload = self._get_restore_xml()
     headers = {
         'Content-Length': self.content_length,
         'Content-Type': 'text/xml'
     }
     return stream_response(payload, headers)