I wrote a simple requestHandler for my GAE application that should create an xml text and let the user download it.
class ExportHandler(webapp.RequestHandler):
def get(self):
r = "<someTag>tagText<someTag>" # sample xml
self.response.headers['Content-Type'] = 'text/plain'
self.response.write(r)
But it shows me an xml file contents on browser. Should I assign headers['Content-Type'] to something else? Or is there any better way to implement that? Thanks in advance.