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

Add libmagic to better process mime_types on Linux

Open masmullin2000 opened this issue 2 years ago • 1 comments

Problem: serving files as application/application-octext-stream is annoying if the file is ASCII text

Solution: When serving files on linux, libmagic can analyze the file to determine filetype when mime_guess has failed. Use libmagic to determine if a file is a plaintext file.

Signed-off-by: Michael Mullin [email protected]

masmullin2000 avatar Jan 23 '22 06:01 masmullin2000

Please fix CI

TheWaWaR avatar Jul 16 '22 15:07 TheWaWaR