diff options
author | Hank Shen <swh@admpub.com> | 2023-12-06 07:07:52 +0300 |
---|---|---|
committer | Hank Shen <swh@admpub.com> | 2023-12-06 07:07:52 +0300 |
commit | 838d7bfd956d62a5a266455a874a4c609a9fe56f (patch) | |
tree | a2080588d84ab462bacc71ad2f59305b53a95612 | |
parent | 514d30dd4689230248087fb9edc543a4d6d61121 (diff) |
updatev0.2.0
-rw-r--r-- | store.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |