Skip to content

Commit f60e1a1

Browse files
authored
Fix HEAD method for robots.txt (#30603)
Fix #30601
1 parent eb24d97 commit f60e1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func Routes() *web.Route {
258258
routes.Get("/metrics", append(mid, Metrics)...)
259259
}
260260

261-
routes.Get("/robots.txt", append(mid, misc.RobotsTxt)...)
261+
routes.Methods("GET,HEAD", "/robots.txt", append(mid, misc.RobotsTxt)...)
262262
routes.Get("/ssh_info", misc.SSHInfo)
263263
routes.Get("/api/healthz", healthcheck.Check)
264264

0 commit comments

Comments
 (0)