michael-lazar / gemini-diagnostics

A torture test for gemini servers
MIT License
25 stars 5 forks source link

URLSchemeHTTP why 53 #11

Closed marek22k closed 2 years ago

marek22k commented 2 years ago
[URLSchemeHTTP] Send a URL with an HTTP scheme
Request URL
  'http://localhost/\r\n'
Response header
  '59 Unknown scheme: http\r\n'
Status should return a failure code (53 PROXY REQUEST REFUSED)
  x Received status of '59'

As far as I understand it, 53 is meant for proxies (see Lagrange's Gemini proxy function). Wouldn't another status make more sense? For example, I used 59 because it is an invalid request from the client.

marek22k commented 2 years ago

Ahh, now I understand the reasoning: The Gemini server is not responsible for HTTP and does not forward the request, therefore 53.