From 899087a9e195bc77e8039ec3c955201230e79b3b Mon Sep 17 00:00:00 2001 From: qydysky Date: Mon, 15 Jan 2024 23:20:05 +0800 Subject: [PATCH] =?utf8?q?Improve=20=E4=B8=BAkeepAlive=E6=8E=A5=E5=8F=A3?= =?utf8?q?=E6=B7=BB=E5=8A=A0=E9=80=9F=E7=8E=87=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Reply/F.go b/Reply/F.go index bc06caf..f3f95e7 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1402,6 +1402,9 @@ func init() { } c.C.SerF.Store(path+"keepAlive", func(w http.ResponseWriter, r *http.Request) { + if c.DefaultHttpCheck(c.C, w, r, http.MethodGet) { + return + } if key, e := expirer.Reg(r.URL.Query().Get("key"), time.Second*30); e != nil { w.WriteHeader(http.StatusForbidden) } else { -- 2.39.2