mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
[#2497] Media preview proxy: added Content-Disposition header with filename to response.
This commit is contained in:
parent
4ee15e991e
commit
02ad1cd8e9
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do
|
||||||
) do
|
) do
|
||||||
conn
|
conn
|
||||||
|> put_resp_header("content-type", "image/jpeg")
|
|> put_resp_header("content-type", "image/jpeg")
|
||||||
|
|> put_resp_header("content-disposition", "inline; filename=\"preview.jpg\"")
|
||||||
|> send_resp(200, thumbnail_binary)
|
|> send_resp(200, thumbnail_binary)
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in a new issue