Apply suggestion to lib/pleroma/http/request_builder.ex

This commit is contained in:
Alexander Strizhakov 2020-03-03 09:46:53 +00:00
parent df3c59d928
commit d30ff35d94
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def url(request, u), do: %{request | url: u}
def headers(request, headers) do
headers_list =
if Pleroma.Config.get([:http, :send_user_agent]) do
headers ++ [{"user-agent", Pleroma.Application.user_agent()}]
[{"user-agent", Pleroma.Application.user_agent()} | headers]
else
headers
end