support HEAD
parent
22636ebbd5
commit
0551fe3ff5
3
main.go
3
main.go
|
@ -50,6 +50,9 @@ func main() {
|
||||||
randMax := big.NewInt(maxID)
|
randMax := big.NewInt(maxID)
|
||||||
|
|
||||||
spaceRE := regexp.MustCompile(`[\t\v\f\r ]+`)
|
spaceRE := regexp.MustCompile(`[\t\v\f\r ]+`)
|
||||||
|
r.HEAD("/", func(c *gin.Context) {
|
||||||
|
c.String(http.StatusOK, "")
|
||||||
|
})
|
||||||
|
|
||||||
r.GET("/", func(c *gin.Context) {
|
r.GET("/", func(c *gin.Context) {
|
||||||
db, err := connectDB()
|
db, err := connectDB()
|
||||||
|
|
Loading…
Reference in New Issue