Comment by 🕹️ skyjake

=> Re: "Definitively can't pack entire documentation into my head:..." | In: s/Gemini

Yes, responses with status code 20 need to include the MIME type of the content. The specification does not make that optional.

The client is not expected to make any guesses based on file extension. That wouldn't even work in cases where the URL has no extension.

I've seen some (old? broken?) server implementations that send a plain "20 " as a response, which has led me to fall back to a default MIME type of "text/gemini; charset=utf-8" in Lagrange, but it's perfectly acceptable for a client to reject such responses as invalid, IMO.

=> 🕹️ skyjake [mod, sysop]

2024-12-02 · 2 months ago

1 Later Comment

=> 👻 ps [OP] · Dec 02 at 12:36:

Agreed, if that's not my specification misunderstand, will not apply any extra action on client side so, but make some notice and maybe append binary download option at this moment. Thanks for confirmation!

Original Post

=> 🌒 s/Gemini

Definitively can't pack entire documentation into my head: must server append content mime type to all 20 status codes? Or that is optional, and client should resolve content type by it extension (when not provided by server)

=> 💬 ps · 2 comments · 2024-12-02 · 2 months ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/skyjake/22385
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
66.322743 milliseconds
Gemini-to-HTML Time
0.420971 milliseconds

This content has been proxied by September (3851b).