summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
}
})