summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorFlorian / sinnlosername <sinnlosername@users.noreply.github.com>2017-07-30 16:32:10 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-07-30 22:32:10 +0800
commit27c2dcf60e60617e28d34176393394aef3fa240c (patch)
tree6c6229d41d1ac486a5ec5833e5aa15bc765023da /routers
parent49df677c475d6a20575b99b5af8323f65937dadb (diff)
downloadgitea-27c2dcf60e60617e28d34176393394aef3fa240c.tar.gz
gitea-27c2dcf60e60617e28d34176393394aef3fa240c.zip
Fixed robots.txt 404 error (#2226)
* Update routes.go * Update routes.go
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 096daad8e2..a7a759538f 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -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)
}
})