mattermost/services/imageproxy
Agniva De Sarker 5cb16c9fc7
MM-24395: Set response header to be attachment for SVG images. (#14385)
* MM-24395: Set response header to be attachment for SVG images.

We check the file extension and appropriately set the response header.
SVG images without a file extension aren't proxied at all. So there's no
problem with that.

* Add test

* Improve test a bit

* Capture content type

* incorporate comments

* Set attachment mode in case of error too
2020-04-30 09:03:13 +05:30
..
atmos_camo.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
atmos_camo_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
error.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
imageproxy.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
imageproxy_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
local.go MM-24395: Set response header to be attachment for SVG images. (#14385) 2020-04-30 09:03:13 +05:30
local_test.go MM-24395: Set response header to be attachment for SVG images. (#14385) 2020-04-30 09:03:13 +05:30