Skip to content

Commit 149b1de

Browse files
committed
[fix] add HEAD for health check
1 parent 2569dc5 commit 149b1de

File tree

1 file changed

+1
-0
lines changed
  • build/go/adguardhome-sync/pkg/sync

1 file changed

+1
-0
lines changed

build/go/adguardhome-sync/pkg/sync/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func (w *worker) listenAndServe() {
105105
r := gin.New()
106106
r.Use(gin.Recovery())
107107

108+
r.HEAD("/healthz", w.handleHealthz)
108109
r.GET("/healthz", w.handleHealthz)
109110

110111
if w.cfg.API.Username != "" && w.cfg.API.Password != "" {

0 commit comments

Comments
 (0)