Boole215 / Lagann

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

Server response is not being handled correctly #22

Closed Boole215 closed 2 years ago

Boole215 commented 2 years ago

Headers and response body are not necessarily split into two different streams. Accept the bare minimum # of bytes to get the MIME type, then check to see if a type is present. If not, then the MIME must be an explanation for the response code. Try splitting based on b'\r\n' to get the end of the response headers.

Boole215 commented 2 years ago

Headers always end with /r/n regardless of response code.