diff options
author | Alan Pearce | 2024-07-03 10:41:02 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-03 10:41:02 +0200 |
commit | 5edc2c104cb94bc9ed8cf05f668822a651875add (patch) | |
tree | fdb01503f5536475c19584fd6bf72e8edf82bbe9 /internal/server/tls.go | |
parent | c4c67c0f3a07ebed224dfc9de4c93d10c47f149a (diff) | |
download | website-5edc2c104cb94bc9ed8cf05f668822a651875add.tar.lz website-5edc2c104cb94bc9ed8cf05f668822a651875add.tar.zst website-5edc2c104cb94bc9ed8cf05f668822a651875add.zip |
oops
Diffstat (limited to 'internal/server/tls.go')
-rw-r--r-- | internal/server/tls.go | 1 |
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) |