Skip to content

Commit

Permalink
refactor validator for new pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
localvar committed Mar 14, 2022
1 parent c9a3b02 commit e9abc5a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/filters/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ func (v *Validator) reload() {

// Handle validates HTTPContext.
func (v *Validator) Handle(ctx context.HTTPContext) string {
result := v.handle(ctx)
return ctx.CallNextHandler(result)
}

func (v *Validator) handle(ctx context.HTTPContext) string {
req := ctx.Request()

prepareErrorResponse := func(status int, tagPrefix string, err error) {
Expand Down

0 comments on commit e9abc5a

Please sign in to comment.