From 32c2a5d613544f7d2eb333555bea42a11e2a87f1 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 2 Jul 2019 22:02:06 +0800 Subject: [PATCH] fix export data --- pkg/appsrv/handlerinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/appsrv/handlerinfo.go b/pkg/appsrv/handlerinfo.go index 1163d95f2a..224b0b3e74 100644 --- a/pkg/appsrv/handlerinfo.go +++ b/pkg/appsrv/handlerinfo.go @@ -42,7 +42,7 @@ type SHandlerInfo struct { } func (this *SHandlerInfo) FetchProcessTimeout(r *http.Request) time.Duration { - if r.Method == http.MethodGet && r.Header.Get("X-Export-Keys") == "true" { + if r.Method == http.MethodGet && len(r.URL.Query().Get("export_keys")) > 0 { return time.Hour * 2 } else { return this.processTimeout