From: qydysky Date: Sat, 31 Aug 2024 12:54:05 +0000 (+0800) Subject: 1 X-Git-Tag: v0.1.20240831125604 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=1001a24be6de4edf520f6f91511e7441fedd05b2;p=front%2F.git 1 --- diff --git a/http.go b/http.go index 6a6fd62..854ee17 100644 --- a/http.go +++ b/http.go @@ -11,7 +11,7 @@ import ( "time" _ "unsafe" - preqf "github.com/qydysky/part/reqf" + "github.com/qydysky/front/utils" pslice "github.com/qydysky/part/slice" ) @@ -129,7 +129,7 @@ func httpDealer(ctx context.Context, w http.ResponseWriter, r *http.Request, rou MaxAge: chosenBack.Splicing(), Path: "/", } - if preqf.ValidCookieDomain(r.Host) { + if utils.ValidCookieDomain(r.Host) { cookie.Domain = r.Host } w.Header().Add("Set-Cookie", (cookie).String())