Skip to content

Commit

Permalink
fix webdav prop get (cloudreve#1023)
Browse files Browse the repository at this point in the history
修复了displayname为空,potplayer可以正常使用webdav功能
  • Loading branch information
WeidiDeng authored Sep 27, 2021
1 parent 65c4367 commit 9ff1b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webdav/prop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9ff1b47

Please sign in to comment.