http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Add Support for `Content-Disposition: attachment`

Open kairlec opened this issue 8 months ago • 6 comments

I use this tool to put my files on the server for downloading on other devices, but when I put text files such as txt, json, etc., I click on it in the browser and it will open the page instead of downloading

Will there be a setting to specify that all files are downloaded instead of opening on the page or specify files with certain suffixes?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Disposition

kairlec avatar May 08 '25 10:05 kairlec