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 committed Jan 6, 2025
1 parent 503c87f commit d4dd9bf
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 d4dd9bf

Please sign in to comment.