mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
removed this.set
This commit is contained in:
parent
65666c5a89
commit
99b9427b8e
2 changed files with 1 additions and 4 deletions
|
@ -121,6 +121,7 @@ func Serve(ready chan struct{}) {
|
|||
go func() {
|
||||
err := http.ListenAndServe(":"+forcePort2SSL, http.HandlerFunc(
|
||||
func(w http.ResponseWriter, req *http.Request) {
|
||||
w.Header().Set("Connection", "close")
|
||||
var host = strings.Replace(req.Host, forcePort2SSL, port, 1) + req.RequestURI
|
||||
http.Redirect(w, req, "https://"+host, http.StatusMovedPermanently)
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue