Clarification of current spec

plugd plugd at thelambdalab.xyz
Thu Sep 19 10:14:30 BST 2019
Hi Brian,

Brian Evans writes:
> I have finally gotten around to implementing a client.

Awesome!

> While building all of this out I have been using existing servers for testing. It seems that there is a good
> amount of variation, particularly concerning tabs and spaces. 
>
> I am wanting clarity on whether this is correct:
> <two digit status number><space><meta>

Yes, as Sean says the spec is silent on this:

--snip--
Gemini response headers look like this:

<STATUS> <META><CR><LF>
--snip--

>From reading some old phlog posts it seems it used to be
<STATUS><TAB><META><CR><LF>, and it's not clear whether the " " in the
current version is meant to be literal or just some collection of
whitespace.

For this reason in Elpher I've just programmed defensively and accept
any combination of spaces and tabs.  This also follows my personal
parsing philosophy of being relaxed about what I accept but strict about
what I send.

plugd



Archive home | About this archive