From 8cb296aea8a264dd95d1479a96409d1c14b4da3d Mon Sep 17 00:00:00 2001 From: Jason Zhang Date: Thu, 14 Oct 2021 09:04:30 +0800 Subject: [PATCH] fix nil issue for timeout filter. (#278) Co-authored-by: randy Co-authored-by: Mark4z <36187602+mark4z@users.noreply.github.com> --- pkg/filter/timeout/timeout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filter/timeout/timeout.go b/pkg/filter/timeout/timeout.go index 9ad54a9f4..844b096c8 100644 --- a/pkg/filter/timeout/timeout.go +++ b/pkg/filter/timeout/timeout.go @@ -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 {