handler: Make ServeGemini accept a Context

This commit is contained in:
Adnan Maolood
2021-02-20 15:49:07 -05:00
parent eca2afeb32
commit e9a68917c9
6 changed files with 32 additions and 26 deletions

View File

@@ -303,7 +303,9 @@ func (srv *Server) respond(conn net.Conn) {
return
}
h.ServeGemini(w, req)
// TODO: Allow configuring the server context
ctx := context.Background()
h.ServeGemini(ctx, w, req)
w.Flush()
}