Browse Source

Fix HEAD method for robots.txt (#30603)

Fix #30601
tags/v1.22.0-rc1
wxiaoguang 1 week ago
parent
commit
f60e1a1af2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      routers/web/web.go

+ 1
- 1
routers/web/web.go View File

@@ -258,7 +258,7 @@ func Routes() *web.Route {
routes.Get("/metrics", append(mid, Metrics)...)
}

routes.Get("/robots.txt", append(mid, misc.RobotsTxt)...)
routes.Methods("GET,HEAD", "/robots.txt", append(mid, misc.RobotsTxt)...)
routes.Get("/ssh_info", misc.SSHInfo)
routes.Get("/api/healthz", healthcheck.Check)


Loading…
Cancel
Save