Browse Source

Media proxy: follow HTTP redirects by default

tags/v0.9.9
href 5 years ago
parent
commit
d8fcf7c5cf
No known key found for this signature in database GPG Key ID: EE8296C1A152C325
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/web/media_proxy/controller.ex

+ 1
- 1
lib/pleroma/web/media_proxy/controller.ex View File

@@ -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], []),


Loading…
Cancel
Save