diff --git a/_embed/templates/base.tmpl b/_embed/templates/base.tmpl index e5caf1f3..b4f297f2 100644 --- a/_embed/templates/base.tmpl +++ b/_embed/templates/base.tmpl @@ -125,10 +125,11 @@ {{- if .IsDir }} {{- end }} diff --git a/handlers/download.go b/handlers/download.go index 484be927..86616d43 100644 --- a/handlers/download.go +++ b/handlers/download.go @@ -71,6 +71,8 @@ func Download(w http.ResponseWriter, r *http.Request, c *config.Config, i *file. extension, err = ".tar.gz", archiver.TarGz.Make(tempfile, files) case "tarbz2": extension, err = ".tar.bz2", archiver.TarBz2.Make(tempfile, files) + case "tarxz": + extension, err = ".tar.xz", archiver.TarXZ.Make(tempfile, files) default: return http.StatusNotImplemented, nil }