mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 23:28:39 +03:00
webdav: user caching is now mandatory
we cache the lock system with the user, without user caching we cannot support locks for resource
This commit is contained in:
@@ -72,8 +72,8 @@ func (fi *webDavFileInfo) ContentType(ctx context.Context) (string, error) {
|
||||
return contentType, nil
|
||||
}
|
||||
contentType, err := fi.Fs.GetMimeType(fi.fsPath)
|
||||
mimeTypeCache.addMimeToCache(extension, contentType)
|
||||
if contentType != "" {
|
||||
mimeTypeCache.addMimeToCache(extension, contentType)
|
||||
return contentType, err
|
||||
}
|
||||
return "", webdav.ErrNotImplemented
|
||||
|
||||
Reference in New Issue
Block a user