From 0b4ca2464d129f1afde26835e23d2c8084e46f69 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 5 Feb 2022 16:08:56 +0100 Subject: [PATCH] fix: use "x-directory" instead of "os" for dir file type --- distribusi.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distribusi.go b/distribusi.go index 964486d..25e1340 100644 --- a/distribusi.go +++ b/distribusi.go @@ -635,14 +635,14 @@ func mkDiv(c *cli.Context, mtype string, href, fname string, unknown bool) (stri filename := fmt.Sprintf("%s", fname) - ftype, _ := parseMtype(mtype) + ftype, stype := parseMtype(mtype) if ftype == "text" { divTag := "
%s%s
" div = fmt.Sprintf(divTag, fname, ftype, href, filename) } else if ftype == "os" { - divTag := "
%s
" - div = fmt.Sprintf(divTag, fname, ftype, href) + divTag := "
%s
" + div = fmt.Sprintf(divTag, fname, stype, href) } else { if unknown { // we really don't know what this is, so the filename is the href and we