Skip to content

Commit

Permalink
fix missing content-type header in some requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3-M4jor authored and jchristgit committed Jan 30, 2025
1 parent 7bd0a27 commit 590a093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nostrum/api/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 590a093

Please # to comment.