Refactors 2

This commit is contained in:
Ben Adrian Sarmiento
2024-07-11 22:33:20 +02:00
parent 4aafe5b4fc
commit 7509f0fa59
6 changed files with 12 additions and 48 deletions

View File

@@ -66,10 +66,9 @@ func VidHubFile(path string, fileSize int64, added string) string {
<d:displayname>%s</d:displayname>
<d:getcontentlength>%d</d:getcontentlength>
<d:getlastmodified>%s</d:getlastmodified>
<d:getcontenttype>%s</d:getcontenttype>
<d:resourcetype></d:resourcetype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>`, customPathEscape(path), html.EscapeString(filename), fileSize, added, getContentType(filename))
</d:response>`, customPathEscape(path), html.EscapeString(filename), fileSize, added)
}