mirror of https://github.com/gofiber/fiber.git
prepare version v2.52.5
parent
7926e5bf4d
commit
abf8f324d6
2
app.go
2
app.go
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
|
|
@ -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{})
|
||||
|
|
Loading…
Reference in New Issue