Allow accessing same filename differently
This commit is contained in:
@@ -12,7 +12,7 @@ func Directory(path string) Response {
|
||||
}
|
||||
}
|
||||
|
||||
func File(path string, fileSize int, added string) Response {
|
||||
func File(path string, fileSize int, added string, link string) Response {
|
||||
return Response{
|
||||
Href: customPathEscape(path),
|
||||
Propstat: PropStat{
|
||||
@@ -21,6 +21,7 @@ func File(path string, fileSize int, added string) Response {
|
||||
IsHidden: 0,
|
||||
CreationDate: added,
|
||||
LastModified: added,
|
||||
Link: link,
|
||||
},
|
||||
Status: "HTTP/1.1 200 OK",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user