Hello, When I want to access to a page without .gmi extention, gmnisrv serves it as binary content, which isn't rendered by browsers. I can see why, but I thing this is problematic in some cases.
AFAIC I serve a gemini version of my http blog, which URLs are without extension. So, to make minimum efforts to convert http to gemini URLs, I would like my gemini URLs not to have extension as well.
So in my opinion there would be 2 options:
/example/fileshould match filesystem path
Thanks for your attention.
Something like the following would be agreeable to me:
If I understand correctly, you propose to specify in config file how to match the MIME type with file extension. In my case that could work, but maybe that wouldn't be such a great idea. If people have GMI files without extensions AND for example some compiled binary programs (without extension), that wouldn't work.
You could just use more specific routing to address different kinds of files which cannot be matched solely based on extension.
Depends, do you plan to make this setting virtualhost-specific or folder-specific or something else ?
Oh I see, for some reason my man page was truncated and didn't show the full route section. Probably due to compilation error :
# make docs SCDOC doc/gmnisrv.1 SCDOC doc/gmnisrvini.5 Error at 57:2: Expected one of '[', '-', ']', or ' ' make: *** [Makefile:29: doc/gmnisrvini.5] Error 1
Well, that's very useful, I didn't know about the routing feature. In those conditions I think your proposition should cover a fairly high number of use cases.