prepare version v2.52.5

pull/3043/head
René 2024-06-26 11:05:26 +02:00
parent 7926e5bf4d
commit abf8f324d6
3 changed files with 7 additions and 4 deletions

2
app.go
View File

@ -30,7 +30,7 @@ import (
) )
// Version of current fiber package // Version of current fiber package
const Version = "2.52.4" const Version = "2.52.5"
// Handler defines a function to serve HTTP requests. // Handler defines a function to serve HTTP requests.
type Handler = func(*Ctx) error type Handler = func(*Ctx) error

View File

@ -88,7 +88,8 @@ func Test_CSRF_WithSession(t *testing.T) {
// the session string is no longer be 123 // the session string is no longer be 123
newSessionIDString := sess.ID() newSessionIDString := sess.ID()
sess.Save() err = sess.Save()
utils.AssertEqual(t, nil, err)
app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString) app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString)
@ -223,7 +224,8 @@ func Test_CSRF_ExpiredToken_WithSession(t *testing.T) {
// get session id // get session id
newSessionIDString := sess.ID() newSessionIDString := sess.ID()
sess.Save() err = sess.Save()
utils.AssertEqual(t, nil, err)
app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString) app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString)

View File

@ -30,7 +30,8 @@ func Test_Session(t *testing.T) {
utils.AssertEqual(t, nil, err) utils.AssertEqual(t, nil, err)
utils.AssertEqual(t, true, sess.Fresh()) utils.AssertEqual(t, true, sess.Fresh())
token := sess.ID() token := sess.ID()
sess.Save() err = sess.Save()
utils.AssertEqual(t, nil, err)
app.ReleaseCtx(ctx) app.ReleaseCtx(ctx)
ctx = app.AcquireCtx(&fasthttp.RequestCtx{}) ctx = app.AcquireCtx(&fasthttp.RequestCtx{})