Validate the response header and body for the root URL
Closed this issue · 1 comments
ninedraft commented
michael-lazar/gemini-diagnostics
[ResponseFormat] Validate the response header and body for the root URL
Request URL
'gemini://localhost:9999/\r\n'
Response header
'30 gemini://localhost:9999/index\r\n'
Status should return a success code (20 SUCCESS)
x Received status of '30'
There should be a single space between <STATUS> and <META>
✓ '0 g'
Mime type should be "text/gemini"
x None
Header should end with "\r\n"
✓ '\r\n'
Body should be non-empty
x ''
Body should use consistent line endings
ninedraft commented
Should be handled by handler callback