all repos — website @ 5edc2c104cb94bc9ed8cf05f668822a651875add

My website

oops
Alan Pearce alan@alanpearce.eu
Wed, 03 Jul 2024 10:41:02 +0200
commit

5edc2c104cb94bc9ed8cf05f668822a651875add

parent

c4c67c0f3a07ebed224dfc9de4c93d10c47f149a

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M internal/server/tls.gointernal/server/tls.go
@@ -113,6 +113,7 @@ } 			url.Host = net.JoinHostPort(host, s.config.BaseURL.Port())
 			http.Redirect(w, r, url.String(), http.StatusMovedPermanently)
 		})
+		srv.Handler = httpMux
 
 		if err := srv.Serve(ln); err != nil && !errors.Is(err, http.ErrServerClosed) {
 			log.Error("error in http handler", "error", err)