Skip to content

Commit

Permalink
fix nil issue for timeout filter. (apache#278)
Browse files Browse the repository at this point in the history
Co-authored-by: randy <ztelur@gmail.com>
Co-authored-by: Mark4z <36187602+mark4z@users.noreply.github.com>
Former-commit-id: 8cb296a
  • Loading branch information
3 people committed Oct 14, 2021
1 parent 35a4b2e commit de8f95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filter/timeout/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (f *Filter) Handle(hc *contexthttp.HttpContext) {
}

func (f *Filter) Config() interface{} {
return nil
return f.cfg.Timeout
}

func (f *Filter) Apply() error {
Expand Down

0 comments on commit de8f95f

Please sign in to comment.