diff options
author | Jeff Becker <jeff@i2p.rocks> | 2018-01-29 10:06:16 -0500 |
---|---|---|
committer | Jeff Becker <jeff@i2p.rocks> | 2018-01-29 10:06:16 -0500 |
commit | 066fe1a697286e38c9e9ef7f2c273c4e7a50ffdc (patch) | |
tree | 5ec2e27561d4f92c8268cffe5be598f7d6b989c8 /lib | |
parent | dffde6631d105949b62c1ff27c22fefcb873b2e8 (diff) | |
download | pleroma-066fe1a697286e38c9e9ef7f2c273c4e7a50ffdc.tar.gz |
use nil instead of empty string
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/http/http.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index 31135411c..8b8a82353 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -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 |