💾 Archived View for rawtext.club › ~sloum › geminilist › 007620.gmi captured on 2023-09-08 at 16:30:32. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

Case-sensitive hostnames

Matthias Portzel matthiasportzel at gmail.com

Sat Nov 20 07:36:37 GMT 2021

- - - - - - - - - - - - - - - - - - - 

Recently, I attempted to navigate to my capsule gemini://MatthiasPortzel.com, with capital letters. I found that my Gemini server (a custom server implementation) didn’t respond to that URL, since I was preforming a case-sensitive hostname match. I would like to be able to stylize my domain name with capital letters sometimes to make my first and last name easier to distinguish. (MatthiasPortzel is more readable than matthiasportzel.)

I changed my capsule to preform a case-insensitive match, to match what I expect from DNS and HTTP.

However, I then tried requesting different capitalizations of other popular Gemini capsules. And hardly any of them responded to changed capitalizations. I believe Molly Brown, Agate, Jetforce, and others, do this simple case-sensitive hostname check.

So I wanted to ask the mailing list. Is this a bug that exists in a significant number of Gemini server implementations that no one has noticed before? Or is it the responsibility of someone else (like the Gemini client or the author of the link) to ensure that domain names are lowercase? Neither Lagrange or Amfora lowercase domain names. On the HTTP side, I believe that Apache’s virtual hosting is case-insensitive, and additionally, it appears that Chrome and Safari lowercase domain names before sending them.

The intuitive behavior here is definitely that case shouldn’t effect domain names. So I would guess that these servers need to be patched. Unless there are objections, it might be worth adding a line to the specification to that effect.

-Matthias Portzel-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20211120/6b4d5798/attachment.htm>