Fix HEAD method for robots.txt (#30603)

Fix #30601
pull/30602/head^2
wxiaoguang 7 months ago committed by GitHub
parent eb24d973b0
commit f60e1a1af2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      routers/web/web.go

@ -258,7 +258,7 @@ func Routes() *web.Route {
routes.Get("/metrics", append(mid, Metrics)...) 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("/ssh_info", misc.SSHInfo)
routes.Get("/api/healthz", healthcheck.Check) routes.Get("/api/healthz", healthcheck.Check)

Loading…
Cancel
Save