Skip to content

Commit

Permalink
fix nil issue for timeout filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
awayings committed Oct 10, 2021
1 parent 516c82b commit 7cf3a56
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 7cf3a56

Please sign in to comment.