aboutsummaryrefslogtreecommitdiff
path: root/setter.go
diff options
context:
space:
mode:
authorHank Shen <swh@admpub.com>2023-12-06 06:51:36 +0300
committerHank Shen <swh@admpub.com>2023-12-06 06:51:36 +0300
commit75a1bf157648c5b5c155ac81e4950bff5315c0ae (patch)
tree0002e25150c8949a660884f9aa753f5adac16f13 /setter.go
parent3faf6fc167dd8a00d6516ad3ad70012869348603 (diff)
update
Diffstat (limited to 'setter.go')
-rw-r--r--setter.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/setter.go b/setter.go
index cb56171..a82dee9 100644
--- a/setter.go
+++ b/setter.go
@@ -49,6 +49,8 @@ func SetSerializer(codecs []Codec, sz Serializer) {
for _, c := range codecs {
if codec, ok := c.(*SecureCookie); ok {
codec.SetSerializer(sz)
+ } else if codec, ok := c.(*UnsafeCodec); ok {
+ codec.SetSerializer(sz)
}
}
}