From b5ae62bc70c85ab32a3923860e2e302d8939352b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 30 Oct 2025 00:33:38 +0800 Subject: [PATCH] fix: build --- internal/bootstrap/http.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/bootstrap/http.go b/internal/bootstrap/http.go index 4e889546..7704b9bb 100644 --- a/internal/bootstrap/http.go +++ b/internal/bootstrap/http.go @@ -33,9 +33,7 @@ func NewHttp(conf *koanf.Koanf, mux *chi.Mux) (*hlfhr.Server, error) { Handler: mux, MaxHeaderBytes: 2048 << 20, }) - srv.HttpOnHttpsPortErrorHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - hlfhr.RedirectToHttps(w, r, http.StatusTemporaryRedirect) - }) + srv.Listen80RedirectTo443 = true if conf.Bool("http.tls") { srv.TLSConfig = &tls.Config{