Fix HEAD method for robots.txt (#30603)
Fix #30601 (cherry picked from commit f60e1a1af25154160f08b85eb159c930b340df8b)
This commit is contained in:
parent
abeea42751
commit
3330b4d5d8
|
@ -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…
Reference in a new issue