fix export data

This commit is contained in:
wanyaoqi
2019-07-02 22:02:06 +08:00
parent d771686d64
commit 32c2a5d613
+1 -1
View File
@@ -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