mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
remove robots.txt endpoint
This reverts #833 because the contributor did not respond to our request to sign the CLA Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1284,10 +1284,6 @@ func (s *httpdServer) initializeRouter() {
|
||||
render.PlainText(w, r, "ok")
|
||||
})
|
||||
|
||||
s.router.Get(robotsTxtPath, func(w http.ResponseWriter, r *http.Request) {
|
||||
render.PlainText(w, r, "User-agent: *\nDisallow: /")
|
||||
})
|
||||
|
||||
if hasHTTPSRedirect {
|
||||
if p := acme.GetHTTP01WebRoot(); p != "" {
|
||||
serveStaticDir(s.router, acmeChallengeURI, p, true)
|
||||
|
||||
Reference in New Issue
Block a user