fix webdav prop get (#1023)

修复了displayname为空,potplayer可以正常使用webdav功能
pull/1027/head
WeidiDeng 3 years ago committed by GitHub
parent 65c4367689
commit 9ff1b47646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,7 +188,7 @@ func props(ctx context.Context, fs *filesystem.FileSystem, ls LockSystem, fi Fil
}
// Otherwise, it must either be a live property or we don't know it.
if prop := liveProps[pn]; prop.findFn != nil && (prop.dir || !isDir) {
innerXML, err := prop.findFn(ctx, fs, ls, "", fi)
innerXML, err := prop.findFn(ctx, fs, ls, fi.GetName(), fi)
if err != nil {
return nil, err
}

Loading…
Cancel
Save