Skip to content

Commit e3df315

Browse files
authored
feat: [#334] Supports use ctx.Request().Bind after ctx.Request.Validate (#1190)
1 parent b41556f commit e3df315

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validation/validator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func init() {
1919
opt.StopOnError = false
2020
opt.SkipOnEmpty = true
2121
opt.FieldTag = "form"
22+
opt.RestoreRequestBody = true
2223
})
2324
}
2425

0 commit comments

Comments
 (0)