Skip to content

Commit

Permalink
fix nil issue for timeout filter. (#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>
  • Loading branch information
3 people authored Oct 14, 2021
1 parent 3107329 commit 8cb296a
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 8cb296a

Please sign in to comment.