webdav: fix URL encoding in PROPFIND handler
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"net/url"
|
||||||
|
|
||||||
"github.com/emersion/go-webdav/internal"
|
"github.com/emersion/go-webdav/internal"
|
||||||
)
|
)
|
||||||
@@ -157,6 +158,6 @@ func (b *backend) propfindFile(propfind *internal.Propfind, name string, fi os.F
|
|||||||
// TODO: getetag
|
// TODO: getetag
|
||||||
}
|
}
|
||||||
|
|
||||||
href := url.URL{Path: name}.String()
|
u := url.URL{Path: name}
|
||||||
return internal.NewPropfindResponse(href, propfind, props)
|
return internal.NewPropfindResponse(u.String(), propfind, props)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user