Set content-type to application/json
This commit is contained in:
parent
94542ad5cd
commit
208328dd69
@ -10,6 +10,7 @@ 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])
|
||||||
|
|
||||||
|
[{"Content-Type", "application/json"}] ++
|
||||||
if is_nil(private_key), do: [], else: [{"X-Meili-API-Key", private_key}]
|
if is_nil(private_key), do: [], else: [{"X-Meili-API-Key", private_key}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user