mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
Wrap Content-Disposition filename with quotes (#996)
This commit is contained in:
parent
57bf87258f
commit
4df355113b
@ -525,7 +525,7 @@ func (c *context) Inline(file, name string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) contentDisposition(file, name, dispositionType string) (err error) {
|
func (c *context) contentDisposition(file, name, dispositionType string) (err error) {
|
||||||
c.response.Header().Set(HeaderContentDisposition, fmt.Sprintf("%s; filename=%s", dispositionType, name))
|
c.response.Header().Set(HeaderContentDisposition, fmt.Sprintf("%s; filename=%q", dispositionType, name))
|
||||||
c.File(file)
|
c.File(file)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user