Browse Source

Use 307 StatusTemporaryRedirect to redirect clients from http to https with forcing them to keep HTTP Verb (#3246)

pull/3247/head
Anis Elleuch 9 years ago
committed by Harshavardhana
parent
commit
98e79b4b50
  1. 2
      cmd/server-mux.go

2
cmd/server-mux.go

@ -350,7 +350,7 @@ func (m *ServerMux) ListenAndServe(certFile, keyFile string) (err error) {
RawQuery: r.URL.RawQuery,
Fragment: r.URL.Fragment,
}
http.Redirect(w, r, u.String(), http.StatusMovedPermanently)
http.Redirect(w, r, u.String(), http.StatusTemporaryRedirect)
} else {
// Execute registered handlers
m.Server.Handler.ServeHTTP(w, r)

Loading…
Cancel
Save