It was thus said that the Great plugd once stated: > Hi all, > > This question occurred to me when debugging some 5x error responses from > servers: how strictly are servers expected to be when responding to > requests? In particular, if a client is given a URL such as > > gemini://example.com > > (i.e. with an empty file name) is it expected to translate it into > > gemini://example.com/ ? Yes. In RFC-3986, if you follow the BNF, you'll find this bit: URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] hier-part = "//" authority path-abempty / path-absolute / path-rootless / path-empty path-abempty = *( "/" segment ) When parsing a URL like: gemini://example.com we have the 'scheme' portion, then the two '//' which means we're following the first rule in 'hier-part'. 'authority' is the host part (which I didn't include) followed by a 'path-abempty', of which there can be 0 or more of, so that's a perfectly cromulent URL. It's the responsibility of the
---
Previous in thread (1 of 15): 🗣️ plugd (plugd (a) thelambdalab.xyz)
Next in thread (3 of 15): 🗣️ plugd (plugd (a) thelambdalab.xyz)