Commit 5d813a1b authored by Matthew Holt's avatar Matthew Holt

Close connection on automatic HTTP->HTTPS redirects

parent 466efb7e
......@@ -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
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment