do not download binary before verifying the version (#20523)

fixes https://github.com/minio/mc/issues/4980
This commit is contained in:
Harshavardhana
2024-10-04 04:32:32 -07:00
committed by GitHub
parent dc86b8d9d4
commit cbfe9de3e7
2 changed files with 61 additions and 33 deletions

View File

@@ -636,7 +636,7 @@ func (s *peerRESTServer) VerifyBinaryHandler(w http.ResponseWriter, r *http.Requ
}
if lrTime.Sub(currentReleaseTime) <= 0 {
s.writeErrorResponse(w, fmt.Errorf("server is already running the latest version: %s", Version))
s.writeErrorResponse(w, fmt.Errorf("server is running the latest version: %s", Version))
return
}