mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 14:37:41 +02:00
Fixed robots.txt 404 error (#2226)
* Update routes.go * Update routes.go
This commit is contained in:
1 parent
49df677c47
commit
27c2dcf60e
1 file changed
+1
-1
@@ -651,7 +651,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
if setting.HasRobotsTxt {
|
||||
ctx.ServeFileContent(path.Join(setting.CustomPath, "robots.txt"))
|
||||
} else {
|
||||
ctx.Error(404)
|
||||
ctx.Handle(404, "", nil)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user