From d4dd9bf1a0669c79f451f966daff70db4738e252 Mon Sep 17 00:00:00 2001 From: The Major Date: Mon, 6 Jan 2025 23:20:42 +0000 Subject: [PATCH] fix missing content-type header in some requests --- lib/nostrum/api/helpers.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nostrum/api/helpers.ex b/lib/nostrum/api/helpers.ex index 08dd4ec1d..d73d1cd66 100644 --- a/lib/nostrum/api/helpers.ex +++ b/lib/nostrum/api/helpers.ex @@ -24,7 +24,7 @@ defmodule Nostrum.Api.Helpers do end @spec maybe_add_reason(String.t() | nil, list()) :: list() - def maybe_add_reason(reason, headers \\ []) + def maybe_add_reason(reason, headers \\ [{"content-type", "application/json"}]) def maybe_add_reason(nil, headers), do: headers def maybe_add_reason(reason, headers) do