Skip to content

Commit a73bb55

Browse files
author
Nick del Pozo
committed
fix test
1 parent 057f8ad commit a73bb55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

csrf_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package csrf
22

33
import (
4+
"github.com/gin-contrib/sessions/cookie"
45
"io"
56
"net/http"
67
"net/http/httptest"
@@ -17,7 +18,8 @@ func init() {
1718

1819
func newServer(options Options) *gin.Engine {
1920
g := gin.New()
20-
store := sessions.NewCookieStore([]byte("secret123"))
21+
22+
store := cookie.NewStore([]byte("secret123"))
2123

2224
g.Use(sessions.Sessions("my_session", store))
2325
g.Use(Middleware(options))

0 commit comments

Comments
 (0)