Skip to content

Commit

Permalink
Handle HEAD method for healthcheck endpoint (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronius authored Jun 23, 2020
1 parent 50bb20a commit 36a2e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gorush/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 36a2e18

Please sign in to comment.