This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fixed robots.txt 404 error (
#2226
)
* Update routes.go * Update routes.go
master
Florian / sinnlosername
Bo-Yi Wu
7 years ago
parent
49df677c47
commit
27c2dcf60e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/routes/routes.go
+ 1
- 1
routers/routes/routes.go
View File
@@ -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
)
}
})
Write
Preview
Loading…
Cancel
Save