Closed ChenZhongPu closed 5 years ago
I would like to force it to download instead of displaying.
The mime is the Content-Type
response header. That should be enough to force a download, since it's a mime browsers don't typically know how to display.
I am using
nanohttpd
in Android as a http server.When the file
mime
isapplication/x-mobipocket-ebook
(I have updated the mimetypes file), it can download directly inKindle
. But when it isplain/txt
, it will display it inline.