Forum

Add text/markdown Mime type

jul
21 January 2018, 21:21
Hello Hugo,

would you be kind enough to add "text/markdown" media type for Markdown files with .md extension?

It's been registered at IETF since March 2016
https://tools.ietf.org/html/rfc7763

PS : Thank you very much for making Hiawatha!
Nicolas
22 January 2018, 18:33
Hello,

I never tried it myself but according to the manual, you can create custom types :

MIMETYPES
Specify the mimetypes of files in /etc/hiawatha/mimetypes.conf.
<mimetype> <extension> [<extension> ...]
Example: image/jpeg jpg jpeg jpe

https://www.hiawatha-webserver.org/manpages/hiawatha
jul
22 January 2018, 20:19
That's what I've done, and it works.
But it would be nice for future updates and reinstallation.
Hugo Leisink
22 January 2018, 23:38
No problem. Added it to the default config for future releases.
This topic has been closed.