mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
Look HISTORY.md for the 6.1.4 improvements. Fix sessions test expect a nil json instead of an empty.
This commit is contained in:
parent
5aaec72634
commit
84f61f6b05
|
@ -58,6 +58,7 @@ editors worked before but I couldn't let some developers without support.
|
|||
- IMPROVEMENT: Now you're able to pass an `func(http.ResponseWriter, *http.Request, http.HandlerFunc)` third-party net/http middleware(Chain-of-responsibility pattern) using the `iris.ToHandler` wrapper func without any other custom boilerplate.
|
||||
|
||||
- IMPROVEMENT: [Sessions manager](https://github.com/kataras/go-sessions) works even faster now.
|
||||
* Change: `context.Session().GetAll()` returns an empty map instead of nil when session has no values.
|
||||
|
||||
|
||||
## 6.1.2 -> 6.1.3
|
||||
|
|
|
@ -532,7 +532,7 @@ func TestContextSessions(t *testing.T) {
|
|||
|
||||
// test destroy which also clears first
|
||||
d := e.GET("/destroy").Expect().Status(iris.StatusOK)
|
||||
d.JSON().Null()
|
||||
d.JSON().Object().Empty()
|
||||
// This removed: d.Cookies().Empty(). Reason:
|
||||
// httpexpect counts the cookies setted or deleted at the response time, but cookie is not removed, to be really removed needs to SetExpire(now-1second) so,
|
||||
// test if the cookies removed on the next request, like the browser's behavior.
|
||||
|
|
Loading…
Reference in New Issue
Block a user