mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: properly URL-encode hrefs in PROPFIND response
This commit is contained in:
parent
4e4a5abed2
commit
f6d0a37ea4
@ -153,5 +153,6 @@ func (b *backend) propfindFile(propfind *internal.Propfind, name string, fi os.F
|
|||||||
// TODO: getetag
|
// TODO: getetag
|
||||||
}
|
}
|
||||||
|
|
||||||
return internal.NewPropfindResponse(name, propfind, props)
|
href := url.URL{Path: name}.String()
|
||||||
|
return internal.NewPropfindResponse(href, propfind, props)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user