Fix last minute refactor fial.

This commit is contained in:
Michael Kaye 2022-02-09 16:31:56 +00:00
parent a2caf1c546
commit 7b2d70a3c9
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func serveTarball(w http.ResponseWriter, r *http.Request, dir string) error {
}
// "disposition filename"
dfilename := strings.Trim(r.URL.Path,"/")
dfilename = strings.Replace(dfile, "/","_",-1)
dfilename = strings.Replace(dfilename, "/","_",-1)
// There is no application/tgz or similar; return a gzip file as best option.
// This tends to trigger archive type tools, which will then use the filename to