diff --git a/gorush/server.go b/gorush/server.go index 56f754c..fb258f9 100644 --- a/gorush/server.go +++ b/gorush/server.go @@ -159,6 +159,7 @@ func routerEngine() *gin.Engine { r.POST(PushConf.API.PushURI, pushHandler) r.GET(PushConf.API.MetricURI, metricsHandler) r.GET(PushConf.API.HealthURI, heartbeatHandler) + r.HEAD(PushConf.API.HealthURI, heartbeatHandler) r.GET("/version", versionHandler) r.GET("/", rootHandler)