diff --git a/pkg/dav/response.go b/pkg/dav/response.go index 70c4b21..549c4fc 100644 --- a/pkg/dav/response.go +++ b/pkg/dav/response.go @@ -6,6 +6,7 @@ func Directory(path string) Response { Propstat: PropStat{ Prop: Prop{ ResourceType: ResourceType{Collection: &struct{}{}}, + ContentType: "httpd/unix-directory", }, Status: "HTTP/1.1 200 OK", }, diff --git a/pkg/dav/types.go b/pkg/dav/types.go index 5daee06..ed3bcf4 100644 --- a/pkg/dav/types.go +++ b/pkg/dav/types.go @@ -23,7 +23,7 @@ type Prop struct { ContentLength int64 `xml:"d:getcontentlength"` CreationDate string `xml:"d:creationdate"` LastModified string `xml:"d:getlastmodified"` - IsHidden int `xml:"d:ishidden"` + ContentType string `xml:"d:getcontenttype"` } type ResourceType struct {