From: Ekaterina Vaartis Date: Fri, 29 Oct 2021 10:58:24 +0000 (+0300) Subject: Set content-type to application/json X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=51faa28568c869f8a63b3c07ddd78f1c1e04f6b7;p=akkoma Set content-type to application/json --- diff --git a/lib/pleroma/search/meilisearch.ex b/lib/pleroma/search/meilisearch.ex index b8248e40c..d94ab8b64 100644 --- a/lib/pleroma/search/meilisearch.ex +++ b/lib/pleroma/search/meilisearch.ex @@ -10,7 +10,8 @@ defmodule Pleroma.Search.Meilisearch do defp meili_headers() do 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 def meili_get!(path) do