support HEAD

trunk
vilmibm 2023-07-18 06:37:37 +00:00
parent 22636ebbd5
commit 0551fe3ff5
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ func main() {
randMax := big.NewInt(maxID)
spaceRE := regexp.MustCompile(`[\t\v\f\r ]+`)
r.HEAD("/", func(c *gin.Context) {
c.String(http.StatusOK, "")
})
r.GET("/", func(c *gin.Context) {
db, err := connectDB()