From 96d8e7b2fa002e074cdfa563d11d06e7271a18fb Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 22 Jul 2018 23:36:24 +0800 Subject: [PATCH] - add HEAD / to make uptime happy. --- routers/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/router.go b/routers/router.go index dddd4dcc8..23c0ec4f1 100644 --- a/routers/router.go +++ b/routers/router.go @@ -39,4 +39,7 @@ func init() { beego.Get("/", func(ctx *beecontext.Context) { ctx.WriteString("pong\n") }) + beego.Head("/", func(ctx *beecontext.Context) { + ctx.WriteString("pong\n") + }) }