Skip to content

Commit

Permalink
fix: AbortWithStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Aug 11, 2023
1 parent 0e070be commit 6013d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewRequest(ctx *Context, log log.Log, validation validatecontract.Validatio
}

func (r *Request) AbortWithStatus(code int) {
_ = r.instance.Status(code).Send(nil)
_ = r.instance.SendStatus(code)
}

func (r *Request) AbortWithStatusJson(code int, jsonObj any) {
Expand Down

0 comments on commit 6013d3c

Please sign in to comment.