aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/misc/misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/misc/misc.go')
-rw-r--r--routers/web/misc/misc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/misc/misc.go b/routers/web/misc/misc.go
index caaca7f521..59b97c1717 100644
--- a/routers/web/misc/misc.go
+++ b/routers/web/misc/misc.go
@@ -20,7 +20,7 @@ func SSHInfo(rw http.ResponseWriter, req *http.Request) {
return
}
rw.Header().Set("content-type", "text/json;charset=UTF-8")
- _, err := rw.Write([]byte(`{"type":"gitea","version":1}`))
+ _, err := rw.Write([]byte(`{"type":"agit","version":1}`))
if err != nil {
log.Error("fail to write result: err: %v", err)
rw.WriteHeader(http.StatusInternalServerError)
@@ -38,7 +38,7 @@ func RobotsTxt(w http.ResponseWriter, req *http.Request) {
if ok, _ := util.IsExist(robotsTxt); !ok {
robotsTxt = util.FilePathJoinAbs(setting.CustomPath, "robots.txt") // the legacy "robots.txt"
}
- httpcache.SetCacheControlInHeader(w.Header(), setting.StaticCacheTime)
+ httpcache.SetCacheControlInHeader(w.Header(), httpcache.CacheControlForPublicStatic())
http.ServeFile(w, req, robotsTxt)
}