Skip to content

Commit

Permalink
prepare version v2.52.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Jun 26, 2024
1 parent 7926e5b commit abf8f32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

// Version of current fiber package
const Version = "2.52.4"
const Version = "2.52.5"

// Handler defines a function to serve HTTP requests.
type Handler = func(*Ctx) error
Expand Down
6 changes: 4 additions & 2 deletions middleware/csrf/csrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func Test_CSRF_WithSession(t *testing.T) {

// the session string is no longer be 123
newSessionIDString := sess.ID()
sess.Save()
err = sess.Save()
utils.AssertEqual(t, nil, err)

app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString)

Expand Down Expand Up @@ -223,7 +224,8 @@ func Test_CSRF_ExpiredToken_WithSession(t *testing.T) {

// get session id
newSessionIDString := sess.ID()
sess.Save()
err = sess.Save()
utils.AssertEqual(t, nil, err)

app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString)

Expand Down
3 changes: 2 additions & 1 deletion middleware/session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ func Test_Session(t *testing.T) {
utils.AssertEqual(t, nil, err)
utils.AssertEqual(t, true, sess.Fresh())
token := sess.ID()
sess.Save()
err = sess.Save()
utils.AssertEqual(t, nil, err)

app.ReleaseCtx(ctx)
ctx = app.AcquireCtx(&fasthttp.RequestCtx{})
Expand Down

0 comments on commit abf8f32

Please sign in to comment.