Skip to content

Commit f93b269

Browse files
committed
Fixed skipper
1 parent d757775 commit f93b269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func NewWithConfig(config Config, opt ...session.Option) gin.HandlerFunc {
6565

6666
manage := session.NewManager(opt...)
6767
return func(ctx *gin.Context) {
68-
if config.Skipper(ctx) {
68+
if config.Skipper != nil && config.Skipper(ctx) {
6969
ctx.Next()
7070
return
7171
}

0 commit comments

Comments
 (0)