Skip to content

Commit

Permalink
Merge pull request #687 from danielgtaylor/fix-body-error-race
Browse files Browse the repository at this point in the history
fix: potential body error race
  • Loading branch information
danielgtaylor authored Dec 22, 2024
2 parents 5c03160 + 1182cc1 commit 44aab0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huma.go
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ func Register[I, O any](api API, op Operation, handler func(context.Context, *I)
res.Errors = append(res.Errors, &ErrorDetail{
Location: "body",
Message: err.Error(),
Value: body,
Value: string(body),
})
parseErrCount++
} else {
Expand Down

0 comments on commit 44aab0b

Please sign in to comment.