提交 9b5e443c 编写于 作者: C Christoph Held 提交者: GitHub

fix download filename for firefox (#2443)

I think we can merge
上级 ca905be5
......@@ -22,7 +22,7 @@ import (
)
func handleDownload(response *restful.Response, result io.ReadCloser, filename string) {
header := fmt.Sprintf("attachment; filename='%v'", filename)
header := fmt.Sprintf("attachment; filename=\"%v\"", filename)
response.AddHeader("Content-Disposition", header)
defer result.Close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册