From 838d7bfd956d62a5a266455a874a4c609a9fe56f Mon Sep 17 00:00:00 2001 From: Hank Shen Date: Wed, 6 Dec 2023 12:07:52 +0800 Subject: update --- store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store.go b/store.go index 00269cd..1ce798d 100644 --- a/store.go +++ b/store.go @@ -159,12 +159,12 @@ var fileMutex sync.RWMutex // it will use os.TempDir(). // // See NewCookieStore() for a description of the other parameters. -func NewFilesystemStore(path string, keyPairs ...[]byte) *FilesystemStore { +func NewFilesystemStore(path string) *FilesystemStore { if len(path) == 0 { path = os.TempDir() } fs := &FilesystemStore{ - Codecs: securecookie.CodecsFromPairs(keyPairs...), + Codecs: []securecookie.Codec{securecookie.NewLiteCodec()}, path: path, } return fs -- cgit v1.2.3