Skip to content

Commit

Permalink
Merge pull request #36 from crova/patch-authentcation-header
Browse files Browse the repository at this point in the history
Use Bearer rather than Basic.
  • Loading branch information
duartejc authored Oct 13, 2023
2 parents 285ef69 + 9b3ce98 commit ad076a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mailchimp/http_client.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Mailchimp.HTTPClient do
@moduledoc false
@moduledoc false

use HTTPoison.Base

Expand Down Expand Up @@ -57,6 +57,6 @@ defmodule Mailchimp.HTTPClient do
"""
def process_request_headers(headers) do
[{"Authorization", "Basic #{Config.api_key!()}"} | headers]
[{"Authorization", "Bearer #{Config.api_key!()}"} | headers]
end
end

0 comments on commit ad076a1

Please sign in to comment.