[ANN] More client torture tests
solderpunk
solderpunk at SDF.ORG
Wed Mar 4 09:54:16 GMT 2020
On Wed, Mar 04, 2020 at 01:26:48AM -0500, Sean Conner wrote:
>
> Client testing time! More tests! This time, checking the status codes.
> It's an open question as to what a client should do with an invalid succss
> code and an invalid redirection status. The rest of the results I think
> should be fine.
Hmm. An invalid success code, like a 20 followed by something that
isn't a valid MIME type? Did the spec say that the MIME type after a 2x
is optional and if unspecified defaults to text/gemini? (checks) No, it
doesn't. So a naked 20 is also invalid.
And I guess an invalid redirect is one without a valid URL.
It seems to me like all a client ought to do in such a scenario is to
inform its user that it received an invalid response in a graceful
manner, rather than crash?
Cheers,
Solderpunk
More information about the Gemini
mailing list