Skip to content

Commit

Permalink
chore: be consistent and use lower case headers everywhere (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-ci-bot committed Feb 28, 2025
1 parent ea3f187 commit 17b99c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/modern_treasury/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Client < ModernTreasury::BaseClient
return {} if @organization_id.nil? || @api_key.nil?

base64_credentials = ["#{@organization_id}:#{@api_key}"].pack("m0")
{"Authorization" => "Basic #{base64_credentials}"}
{"authorization" => "Basic #{base64_credentials}"}
end

# Creates and returns a new client for interacting with the API.
Expand Down
2 changes: 1 addition & 1 deletion lib/modern_treasury/resources/documents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create(params)
@client.request(
method: :post,
path: "api/documents",
headers: {"Content-Type" => "multipart/form-data"},
headers: {"content-type" => "multipart/form-data"},
body: parsed,
model: ModernTreasury::Models::Document,
options: options
Expand Down

0 comments on commit 17b99c3

Please sign in to comment.