Commit Diff
- Commit:
8fb0df4d79c26e54d57fd0d4e35bc1ae2954de20
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- hardcode the mapping text/gemini -> .gmi/.gemini It's still possible to override this automatic mapping by just adding an entry like application/octet-stream gemini gmi in the `types' block.
- Actions:
- Patch | Tree
--- mime.c +++ mime.c @@ -149,6 +149,8 @@ mime(struct vhost *host, const char *path) mime_find); if (t != NULL) return t->mime; + if (!strcmp(ext, "gmi") || !strcmp(ext, "gemini")) + return "text/gemini"; return def; }