Skip to content

Commit

Permalink
Fix HEAD method for robots.txt (#30603) (#30604)
Browse files Browse the repository at this point in the history
Backport #30603 by wxiaoguang

Fix #30601
  • Loading branch information
GiteaBot authored Apr 19, 2024
1 parent 667427b commit 79484e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,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)

Expand Down

0 comments on commit 79484e1

Please sign in to comment.