From: Ivan Tashkinov Date: Thu, 20 Aug 2020 06:58:50 +0000 (+0300) Subject: [#2497] Media preview proxy: added Content-Disposition header with filename to response. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=02ad1cd8e97c44824b92b53ea1879a965bbd8358;p=akkoma [#2497] Media preview proxy: added Content-Disposition header with filename to response. --- diff --git a/lib/pleroma/web/media_proxy/media_proxy_controller.ex b/lib/pleroma/web/media_proxy/media_proxy_controller.ex index 31d18c119..5513432f0 100644 --- a/lib/pleroma/web/media_proxy/media_proxy_controller.ex +++ b/lib/pleroma/web/media_proxy/media_proxy_controller.ex @@ -87,6 +87,7 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do ) do conn |> put_resp_header("content-type", "image/jpeg") + |> put_resp_header("content-disposition", "inline; filename=\"preview.jpg\"") |> send_resp(200, thumbnail_binary) else _ ->