mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Introduce version 5.0.1
This commit is contained in:
@@ -348,7 +348,7 @@ func TestMuxSimple(t *testing.T) {
|
||||
iris.HandleFunc(r.Method, r.Path, func(ctx *iris.Context) {
|
||||
ctx.SetStatusCode(r.Status)
|
||||
if r.Params != nil && len(r.Params) > 0 {
|
||||
ctx.SetBodyString(ctx.Params.String())
|
||||
ctx.SetBodyString(ctx.ParamsSentence())
|
||||
} else if r.URLParams != nil && len(r.URLParams) > 0 {
|
||||
if len(r.URLParams) != len(ctx.URLParams()) {
|
||||
t.Fatalf("Error when comparing length of url parameters %d != %d", len(r.URLParams), len(ctx.URLParams()))
|
||||
|
||||
Reference in New Issue
Block a user