From 1992d26a4c2c413395b761bacef4ac9f4f2c7bd6 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Thu, 19 Oct 2023 23:46:15 +0200 Subject: [PATCH] possible mount fixes --- pkg/dav/response.go | 1 + pkg/dav/types.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 {