From 7cf3a56978ae83945f731bbb7a8f9243ba470925 Mon Sep 17 00:00:00 2001 From: awayings Date: Sun, 10 Oct 2021 22:15:45 +0800 Subject: [PATCH] fix nil issue for timeout filter. --- 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 {