Sfoglia il codice sorgente

Fix HEAD method for robots.txt (#30603)

Fix #30601
tags/v1.22.0-rc1
wxiaoguang 1 mese fa
parent
commit
f60e1a1af2
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      routers/web/web.go

+ 1
- 1
routers/web/web.go Vedi 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…
Annulla
Salva