aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorEthan Mosbaugh <emosbaugh@gmail.com>2025-02-06 23:11:17 -0800
committerGitHub <noreply@github.com>2025-02-06 23:11:17 -0800
commit9ebc132ffc1a4c6a07864a8cec05cc380a8f00e0 (patch)
tree1461e79813fcdf6a4dfe8bd60de8eeb66ab66b65 /weed/command/master.go
parent29c2d9b965477055bfb3379c2957df583dd5b7b4 (diff)
downloadseaweedfs-9ebc132ffc1a4c6a07864a8cec05cc380a8f00e0.tar.xz
seaweedfs-9ebc132ffc1a4c6a07864a8cec05cc380a8f00e0.zip
fix: bucket-hook fails with gnu wget (#6521)
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 261670ce8..4392c766f 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -192,7 +192,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
}
}
ms.SetRaftServer(raftServer)
- r.HandleFunc("/cluster/status", raftServer.StatusHandler).Methods(http.MethodGet)
+ r.HandleFunc("/cluster/status", raftServer.StatusHandler).Methods(http.MethodGet, http.MethodHead)
r.HandleFunc("/cluster/healthz", raftServer.HealthzHandler).Methods(http.MethodGet, http.MethodHead)
if *masterOption.raftHashicorp {
r.HandleFunc("/raft/stats", raftServer.StatsRaftHandler).Methods(http.MethodGet)