Boole215 / Lagann

A browser for gemini written in python
0 stars 0 forks source link

Interpreting MIME types #5

Open Boole215 opened 2 years ago

Boole215 commented 2 years ago

Interpretation based on provided MIME type needs to be added, as well as the case where there's a lack thereof. Currently, every response body is interpreted as being gemini/text.

In normal use this is not a valid assumption that can be made, as the Gemini specification states:

In all other cases, clients should do "something sensible" based on the MIME type.

Boole215 commented 2 years ago

Acceptable interpretations of text/* type media have been implemented, now there needs to be support added for images, videos, and the like.

Boole215 commented 2 years ago

Adding support for text/gopher files served over gemini should also be looked into.