添加 空闲链接超时自动断开

This commit is contained in:
bjdgyc
2023-12-29 15:51:49 +08:00
parent 42142d95b7
commit ef1e20a558
13 changed files with 42 additions and 15 deletions

View File

@@ -25,6 +25,7 @@ func StartAdmin() {
r.Use(func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
utils.SetSecureHeader(w)
w.Header().Set("Server", "AnyLinkAdminOpenSource")
next.ServeHTTP(w, req)
})
})