mirror of
https://github.com/minio/minio.git
synced 2025-04-16 00:49:09 -04:00
Use 307 StatusTemporaryRedirect to redirect clients from http to https with forcing them to keep HTTP Verb (#3246)
This commit is contained in:
parent
e2216a0936
commit
98e79b4b50
@ -350,7 +350,7 @@ func (m *ServerMux) ListenAndServe(certFile, keyFile string) (err error) {
|
|||||||
RawQuery: r.URL.RawQuery,
|
RawQuery: r.URL.RawQuery,
|
||||||
Fragment: r.URL.Fragment,
|
Fragment: r.URL.Fragment,
|
||||||
}
|
}
|
||||||
http.Redirect(w, r, u.String(), http.StatusMovedPermanently)
|
http.Redirect(w, r, u.String(), http.StatusTemporaryRedirect)
|
||||||
} else {
|
} else {
|
||||||
// Execute registered handlers
|
// Execute registered handlers
|
||||||
m.Server.Handler.ServeHTTP(w, r)
|
m.Server.Handler.ServeHTTP(w, r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user