aboutsummaryrefslogtreecommitdiff
path: root/store.go
diff options
context:
space:
mode:
authorHank Shen <swh@admpub.com>2023-12-06 07:07:52 +0300
committerHank Shen <swh@admpub.com>2023-12-06 07:07:52 +0300
commit838d7bfd956d62a5a266455a874a4c609a9fe56f (patch)
treea2080588d84ab462bacc71ad2f59305b53a95612 /store.go
parent514d30dd4689230248087fb9edc543a4d6d61121 (diff)
updatev0.2.0
Diffstat (limited to 'store.go')
-rw-r--r--store.go4
1 files 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