mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 01:01:12 +00:00
Apply suggestion to lib/pleroma/http/request_builder.ex
This commit is contained in:
parent
df3c59d928
commit
d30ff35d94
|
@ -35,7 +35,7 @@ defmodule Pleroma.HTTP.RequestBuilder do
|
||||||
def headers(request, headers) do
|
def headers(request, headers) do
|
||||||
headers_list =
|
headers_list =
|
||||||
if Pleroma.Config.get([:http, :send_user_agent]) do
|
if Pleroma.Config.get([:http, :send_user_agent]) do
|
||||||
headers ++ [{"user-agent", Pleroma.Application.user_agent()}]
|
[{"user-agent", Pleroma.Application.user_agent()} | headers]
|
||||||
else
|
else
|
||||||
headers
|
headers
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue