#28 : knowing when URL is a folder and not a file

Message ID
DKIM signature
Download raw message
I’m trying to solve #28

Which is conceptually very simple to understand:

when visiting url host.com/path how could the browser possibly know if 
path is a file or a folder (and the real path is the hidden 
path/index.gmi ).

This is important for relative links : as "target.gmi" could be either 
host.com/target.gmi or host.com/path/target.gmi.

As the problem is very obvious and very common, it looks like it is 
solved everywhere (but in Offpunk). And yet, I don’t understand how they 
do it.

Any help/tips welcome.
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html
Reply to thread Export thread (mbox)