1
0
Fork 0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-06-08 08:16:10 +02:00

Don't assume a default scheme of gemini

This commit is contained in:
Adnan Maolood 2020-11-24 17:13:52 -05:00
parent 4b653032e4
commit cab23032c0

View File

@ -203,11 +203,6 @@ func (s *Server) respond(conn net.Conn) {
// Note that we return an error status if User is specified in the URL
w.WriteStatus(StatusBadRequest)
} else {
// If no scheme is specified, assume a default scheme of gemini://
if url.Scheme == "" {
url.Scheme = "gemini"
}
// Store information about the TLS connection
connState := conn.(*tls.Conn).ConnectionState()
var cert *tls.Certificate