Rename Handler to Responder

This commit is contained in:
Adnan Maolood
2020-10-21 16:28:50 -04:00
parent 53326e59a0
commit aeff8a051c
4 changed files with 101 additions and 107 deletions

View File

@@ -45,7 +45,7 @@ func main() {
if err := server.CertificateStore.Load("/var/lib/gemini/certs"); err != nil {
log.Fatal(err)
}
server.Handle("localhost", handler)
server.Register("localhost", handler)
if err := server.ListenAndServe(); err != nil {
log.Fatal(err)

View File

@@ -49,7 +49,7 @@ func main() {
var mux gmi.ServeMux
mux.Handle("/", gmi.FileServer(gmi.Dir("/var/www")))
server.Handle("localhost", &mux)
server.Register("localhost", &mux)
if err := server.ListenAndServe(); err != nil {
log.Fatal(err)
}