def _send_json_response(self, code, response):
    self.response.headers['Content-Disposition'] = 'attachment'
    self.response.headers['Content-Type'] = 'application/javascript; charset=utf-8'
    self.response.headers['X-Content-Type-Options'] = 'nosniff'
    self.response.headers['Access-Control-Allow-Origin'] = '*'
    self.response.status_code = code
    self.response.write(transforms.dumps(response))
def _send_json_response(self, code, response):
    self.response.headers['Content-Disposition'] = 'attachment'
    self.response.headers['Content-Type'] = 'application/javascript; charset=utf-8'
    self.response.headers['X-Content-Type-Options'] = 'nosniff'
    self.response.headers['Access-Control-Allow-Origin'] = '*'
    self.response.status_code = code
    self.response.write(transforms.dumps(response))