about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-07-03 10:41:02 +0200
committerAlan Pearce2024-07-03 10:41:02 +0200
commit5edc2c104cb94bc9ed8cf05f668822a651875add (patch)
treefdb01503f5536475c19584fd6bf72e8edf82bbe9 /internal/server
parentc4c67c0f3a07ebed224dfc9de4c93d10c47f149a (diff)
downloadwebsite-5edc2c104cb94bc9ed8cf05f668822a651875add.tar.lz
website-5edc2c104cb94bc9ed8cf05f668822a651875add.tar.zst
website-5edc2c104cb94bc9ed8cf05f668822a651875add.zip
oops
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/tls.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index ebf76a2..1a79e9c 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -113,6 +113,7 @@ func (s *Server) serveTLS() (err error) {
 			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)