1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-19 23:01:37 +02:00

Don't assume a default scheme of gemini

This commit is contained in:
adnano 2020-11-24 17:13:52 -05:00
parent 2ab2d119e8
commit be4b6dab1e

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