diff --git a/caddyhttp/httpserver/https.go b/caddyhttp/httpserver/https.go index 1f5465ef5..929897145 100644 --- a/caddyhttp/httpserver/https.go +++ b/caddyhttp/httpserver/https.go @@ -149,6 +149,7 @@ func redirPlaintextHost(cfg *SiteConfig) *SiteConfig { toURL += ":" + redirPort } toURL += r.URL.RequestURI() + w.Header().Set("Connection", "close") http.Redirect(w, r, toURL, http.StatusMovedPermanently) return 0, nil })