Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
d8fcf7c5
Verified
Commit
d8fcf7c5
authored
Dec 07, 2018
by
href
Browse files
Media proxy: follow HTTP redirects by default
parent
8764f646
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/media_proxy/controller.ex
View file @
d8fcf7c5
...
...
@@ -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
],
[]),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment