We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a665e71 + 772d781 commit 570f7acCopy full SHA for 570f7ac
app.go
@@ -31,7 +31,7 @@ import (
31
)
32
33
// Version of current fiber package
34
-const Version = "2.2.1"
+const Version = "2.2.2"
35
36
// Handler defines a function to serve HTTP requests.
37
type Handler = func(*Ctx) error
middleware/session/config.go
@@ -67,6 +67,9 @@ func configDefault(config ...Config) Config {
67
if int(cfg.Expiration.Seconds()) <= 0 {
68
cfg.Expiration = ConfigDefault.Expiration
69
}
70
+ if cfg.CookieName == "" {
71
+ cfg.CookieName = ConfigDefault.CookieName
72
+ }
73
if cfg.KeyGenerator == nil {
74
cfg.KeyGenerator = ConfigDefault.KeyGenerator
75
0 commit comments