diff --git a/web/repo.go b/web/repo.go index 6f6f199..7aa1c6c 100644 --- a/web/repo.go +++ b/web/repo.go @@ -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 {