💾 Archived View for bbs.geminispace.org › u › lufte › 15704 captured on 2024-05-10 at 12:55:13. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

➡️ Next capture (2024-05-12)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🛰️ lufte

Re: "Valid Gemini response with invalid media type?"

In: s/Gemini

You could read the new (in progress) spec to see if you find it clearer. The way I see it, gemini does not allow white space around and "text/plain\n" it's not a valid MIME type either.

— geminiprotocol.net/docs/protocol-specification.gmi

🛰️ lufte

Mar 21 · 7 weeks ago

Original Post

🌒 s/Gemini

Valid Gemini response with invalid media type? — Valid Gemini response with invalid media type? This is an interesting URL: [gemini link] It returns a status code 20, and a META of "text/plain\n" with a literal new line. A \r\n follows this, so per the Gemini spec, the META field contains a trailing \n character. The Gemini spec says that "For [SUCCESS status] responses, <META> is a MIME media type as defined in RFC 2046." RFC-2046 defines the media type as part of the grammar for a `...

💬 Acidus · 1 comment · Mar 21 · 7 weeks ago