mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-11 11:52:07 +08:00
Fixed downloading mobi from fdown
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user