Case-sensitive hostnames

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 in thread (2 of 5): 🗣️ Stephane Bortzmeyer (stephane (a) sources.org)

View entire thread.