We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4410fe commit a973e3bCopy full SHA for a973e3b
bind_test.go
@@ -1060,6 +1060,14 @@ func TestDefaultBinder_BindBody(t *testing.T) {
1060
expect: &Node{ID: 0, Node: ""},
1061
expectError: "code=415, message=Unsupported Media Type",
1062
},
1063
+ {
1064
+ name: "ok, JSON POST bind to struct with: path + query + http.NoBody",
1065
+ givenURL: "/api/real_node/endpoint?node=xxx",
1066
+ givenMethod: http.MethodPost,
1067
+ givenContentType: MIMEApplicationJSON,
1068
+ givenContent: http.NoBody,
1069
+ expect: &Node{ID: 0, Node: ""},
1070
+ },
1071
}
1072
1073
for _, tc := range testCases {
0 commit comments