From 4691142f80b7c6713f4b80b450776f1bfe526e2e Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Sat, 23 Jul 2022 21:19:27 +0800 Subject: [PATCH] fix: webdav_policy default value --- internal/operations/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/operations/driver.go b/internal/operations/driver.go index 544bbd8f2bb..834a79d1ff2 100644 --- a/internal/operations/driver.go +++ b/internal/operations/driver.go @@ -77,7 +77,7 @@ func getMainItems(config driver.Config) []driver.Item { Name: "webdav_policy", Type: conf.TypeSelect, Values: "302_redirect, use_proxy_url, native_proxy", - Default: "direct", + Default: "302_redirect", Required: true, }, }...) @@ -85,7 +85,7 @@ func getMainItems(config driver.Config) []driver.Item { items = append(items, driver.Item{ Name: "webdav_policy", Type: conf.TypeSelect, - Default: "", + Default: "native_proxy", Values: "use_proxy_url, native_proxy", Required: true, })