fix: cannot overwrite file to slave policy / fix: remove lock system for webdav to resolve Windows Explorer issue.

This commit is contained in:
HFO4
2022-04-22 15:57:21 +08:00
parent f8b7e086ba
commit b1803fa51f
5 changed files with 246 additions and 214 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/cloudreve/Cloudreve/v3/pkg/webdav"
"github.com/cloudreve/Cloudreve/v3/service/setting"
"github.com/gin-gonic/gin"
"sync"
)
var handler *webdav.Handler
@@ -15,6 +16,7 @@ func init() {
handler = &webdav.Handler{
Prefix: "/dav",
LockSystem: make(map[uint]webdav.LockSystem),
Mutex: &sync.Mutex{},
}
}