add hash to download filename
This commit is contained in:
parent
c7271d2d33
commit
ff9e17b11e
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ func (web *Web) mapZip(c *gin.Context) {
|
|||
files := tree.Files()
|
||||
|
||||
c.Writer.Header().Set("Content-type", "application/octet-stream")
|
||||
c.Writer.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s.zip", mapId))
|
||||
c.Writer.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s-%s.zip", mapId, hash))
|
||||
c.Stream(func(w io.Writer) bool {
|
||||
ar := zip.NewWriter(w)
|
||||
for {
|
||||
|
|
Loading…
Reference in a new issue