Fixed downloading mobi from fdown

This commit is contained in:
sigizmund 2011-01-03 20:35:15 +00:00
parent 783a614345
commit fe557bbce5

View file

@ -115,6 +115,10 @@ class FileServer(webapp.RequestHandler):
elif fanfic.format == 'text':
self.response.headers['Content-Type'] = 'text/plain'
self.response.headers['Content-disposition'] = 'attachment; filename=' +name + '.txt.zip'
elif fanfic.format == 'mobi':
self.response.headers['Content-Type'] = 'application/x-mobipocket-ebook'
self.response.headers['Content-disposition'] = 'attachment; filename=' + name + '.mobi'
self.response.out.write(fanfic.blob)