From 36a2e181aa9bd3eea17c6b35e0ddf2d216e92285 Mon Sep 17 00:00:00 2001 From: "Yaroslav \"Zorg\" Zborovsky" Date: Tue, 23 Jun 2020 06:17:59 +0300 Subject: [PATCH] Handle HEAD method for healthcheck endpoint (#525) --- gorush/server.go | 1 + 1 file changed, 1 insertion(+) 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)