mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: fix URL encoding in PROPFIND handler
This commit is contained in:
parent
0469c3d389
commit
ffc628aed9
@ -7,6 +7,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"net/url"
|
||||
|
||||
"github.com/emersion/go-webdav/internal"
|
||||
)
|
||||
@ -157,6 +158,6 @@ func (b *backend) propfindFile(propfind *internal.Propfind, name string, fi os.F
|
||||
// TODO: getetag
|
||||
}
|
||||
|
||||
href := url.URL{Path: name}.String()
|
||||
return internal.NewPropfindResponse(href, propfind, props)
|
||||
u := url.URL{Path: name}
|
||||
return internal.NewPropfindResponse(u.String(), propfind, props)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user