fixes here and there
This commit is contained in:
@@ -2,7 +2,7 @@ package dav
|
||||
|
||||
func Directory(path string) Response {
|
||||
return Response{
|
||||
Href: customPathEscape(path),
|
||||
Href: "/" + customPathEscape(path),
|
||||
Propstat: PropStat{
|
||||
Prop: Prop{
|
||||
ResourceType: ResourceType{Value: "<d:collection/>"},
|
||||
@@ -14,7 +14,7 @@ func Directory(path string) Response {
|
||||
|
||||
func File(path string, fileSize int64, added string, link string) Response {
|
||||
return Response{
|
||||
Href: customPathEscape(path),
|
||||
Href: "/" + customPathEscape(path),
|
||||
Propstat: PropStat{
|
||||
Prop: Prop{
|
||||
ContentLength: fileSize,
|
||||
|
||||
Reference in New Issue
Block a user