use nil instead of empty string
This commit is contained in:
parent
dffde6631d
commit
066fe1a697
2 changed files with 3 additions and 3 deletions
|
|
@ -4,9 +4,9 @@ defmodule Pleroma.HTTP do
|
|||
|
||||
def process_request_options(options) do
|
||||
config = Application.get_env(:pleroma, :http, [])
|
||||
proxy = Keyword.get(config, :proxy_url, "")
|
||||
proxy = Keyword.get(config, :proxy_url, nil)
|
||||
case proxy do
|
||||
"" -> options
|
||||
nil -> options
|
||||
_ -> options ++ [proxy: proxy]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue