mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
fix export data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user