From 0757ab7f4665c188a28223e59f7f92c5f9707f18 Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 28 Feb 2025 12:22:00 +0800 Subject: [PATCH] up --- net/ghttp/ghttp_z_unit_feature_router_strict_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ghttp/ghttp_z_unit_feature_router_strict_test.go b/net/ghttp/ghttp_z_unit_feature_router_strict_test.go index ef4fa12112b..1944c5fb474 100644 --- a/net/ghttp/ghttp_z_unit_feature_router_strict_test.go +++ b/net/ghttp/ghttp_z_unit_feature_router_strict_test.go @@ -505,7 +505,6 @@ func (t *testNullStringIssue3465) Test(ctx context.Context, req *testNullStringI // https://github.com/gogf/gf/issues/3465 func Test_NullString_Issue3465(t *testing.T) { - s := g.Server(guid.S()) s.Use(ghttp.MiddlewareHandlerResponse) s.Group("/", func(group *ghttp.RouterGroup) { @@ -524,7 +523,7 @@ func Test_NullString_Issue3465(t *testing.T) { "name": "null", } - expect1 := `{"code":0,"message":"OK","data":{"name":["null"]}}` + expect1 := `{"code":0,"message":"OK","data":{"name":null}}` t.Assert(client.GetContent(ctx, "/test", data1), expect1) data2 := map[string]any{