projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8764f64
)
Media proxy: follow HTTP redirects by default
author
href
<href@random.sh>
Fri, 7 Dec 2018 18:36:44 +0000
(19:36 +0100)
committer
href
<href@random.sh>
Fri, 7 Dec 2018 18:36:44 +0000
(19:36 +0100)
lib/pleroma/web/media_proxy/controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/media_proxy/controller.ex
b/lib/pleroma/web/media_proxy/controller.ex
index e1b87e0264f0fc821c6c92d2555f39d5cff9b545..d0b92d0c10445ccb2dc9ed6b1b52f8f2f8e3b0a1 100644
(file)
--- a/
lib/pleroma/web/media_proxy/controller.ex
+++ b/
lib/pleroma/web/media_proxy/controller.ex
@@
-2,7
+2,7
@@
defmodule Pleroma.Web.MediaProxy.MediaProxyController do
use Pleroma.Web, :controller
alias Pleroma.{Web.MediaProxy, ReverseProxy}
- @default_proxy_opts [max_body_length: 25 * 1_048_576]
+ @default_proxy_opts [max_body_length: 25 * 1_048_576
, http: [follow_redirect: true]
]
def remote(conn, params = %{"sig" => sig64, "url" => url64}) do
with config <- Pleroma.Config.get([:media_proxy], []),