Fix last minute refactor fial.
This commit is contained in:
parent
a2caf1c546
commit
7b2d70a3c9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue