commit 8fb0df4d79c26e54d57fd0d4e35bc1ae2954de20 from: Omar Polo date: Fri Apr 08 15:25:50 2022 UTC 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. commit - 99a95569a4e95e04600690734fef072cbf19b572 commit + 8fb0df4d79c26e54d57fd0d4e35bc1ae2954de20 blob - 8ce73fd8f002028d42d459577b80a398691a5666 blob + fc8d8cc95cefe63eb9e6b71438cf64096d783706 --- 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; }