Skip to content
Snippets Groups Projects
Unverified Commit 066fe1a6 authored by jeff's avatar jeff
Browse files

use nil instead of empty string

parent dffde663
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -42,7 +42,7 @@ version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
# Configures http settings, upstream proxy etc.
config :pleroma, :http,
proxy_url: ""
proxy_url: nil
config :pleroma, :instance,
version: version,
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment