diff --git a/pkg/dav/types.go b/pkg/dav/types.go index ed3bcf4..007934a 100644 --- a/pkg/dav/types.go +++ b/pkg/dav/types.go @@ -19,11 +19,11 @@ type PropStat struct { } type Prop struct { - ResourceType ResourceType `xml:"d:resourcetype"` - ContentLength int64 `xml:"d:getcontentlength"` - CreationDate string `xml:"d:creationdate"` - LastModified string `xml:"d:getlastmodified"` - ContentType string `xml:"d:getcontenttype"` + ResourceType ResourceType `xml:"d:resourcetype,omitempty"` + ContentLength int64 `xml:"d:getcontentlength,omitempty"` + CreationDate string `xml:"d:creationdate,omitempty"` + LastModified string `xml:"d:getlastmodified,omitempty"` + ContentType string `xml:"d:getcontenttype,omitempty"` } type ResourceType struct {