Commit 7a88a22c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add double quotes around filename in Content-Disposition

parent cabd0a43
...@@ -70,7 +70,7 @@ func DownloadArtifact(myAPI *api.API) http.Handler { ...@@ -70,7 +70,7 @@ func DownloadArtifact(myAPI *api.API) http.Handler {
w.Header().Set("Content-Length", strconv.FormatInt(int64(file.UncompressedSize64), 10)) w.Header().Set("Content-Length", strconv.FormatInt(int64(file.UncompressedSize64), 10))
w.Header().Set("Content-Type", contentType) w.Header().Set("Content-Type", contentType)
w.Header().Set("Content-Disposition", "attachment; filename="+filepath.Base(file.Name)) w.Header().Set("Content-Disposition", "attachment; filename=\""+filepath.Base(file.Name)+"\"")
reader, err := file.Open() reader, err := file.Open()
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment