forked from AkkomaGang/akkoma
Set content-type to application/json
This commit is contained in:
parent
afcdd2f437
commit
51faa28568
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ defmodule Pleroma.Search.Meilisearch do
|
||||||
defp meili_headers() do
|
defp meili_headers() do
|
||||||
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
|
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
|
||||||
|
|
||||||
if is_nil(private_key), do: [], else: [{"X-Meili-API-Key", private_key}]
|
[{"Content-Type", "application/json"}] ++
|
||||||
|
if is_nil(private_key), do: [], else: [{"X-Meili-API-Key", private_key}]
|
||||||
end
|
end
|
||||||
|
|
||||||
def meili_get!(path) do
|
def meili_get!(path) do
|
||||||
|
|
Loading…
Reference in a new issue