mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
Set content-type to application/json
This commit is contained in:
parent
e4b7a3f51f
commit
0b4fd0d342
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue