From 7665b5d504a840a48f459a3165f29af25eff2132 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 2 Jan 2017 14:06:32 +0000 Subject: [PATCH] close #2 Former-commit-id: b8c82bb8415d5311c9e534581ce3888d095c7794 --- _embed/templates/base.tmpl | 7 ++++--- handlers/download.go | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) 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 }