mirror of
https://github.com/pgsty/minio.git
synced 2026-07-25 15:06:17 +03:00
fix: --console-address when specified endpoints missing (#12534)
Additionally upgrade console dependency for reading environment variables properly.
This commit is contained in:
@@ -161,7 +161,7 @@ func guessIsBrowserReq(r *http.Request) bool {
|
||||
func setBrowserRedirectHandler(h http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
// Re-direction is handled specifically for browser requests.
|
||||
if guessIsBrowserReq(r) {
|
||||
if guessIsBrowserReq(r) && globalBrowserRedirect {
|
||||
// Fetch the redirect location if any.
|
||||
u := getRedirectLocation(r)
|
||||
if u != nil {
|
||||
|
||||
Reference in New Issue
Block a user