Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Feb 28, 2025
1 parent e311630 commit 0757ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ghttp/ghttp_z_unit_feature_router_strict_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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{
Expand Down

0 comments on commit 0757ab7

Please sign in to comment.