Set content-type to application/json

This commit is contained in:
Ekaterina Vaartis 2021-10-29 13:58:24 +03:00 committed by FloatingGhost
parent afcdd2f437
commit 51faa28568

View file

@ -10,6 +10,7 @@ defmodule Pleroma.Search.Meilisearch do
defp meili_headers() do
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
[{"Content-Type", "application/json"}] ++
if is_nil(private_key), do: [], else: [{"X-Meili-API-Key", private_key}]
end