Skip to content

Commit

Permalink
Default the headers to Accept JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Jul 11, 2022
1 parent 89b3a22 commit 76fc78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(
retry_options: nil,
base_uri: nil,
sso_uri: nil,
client_options: {}
client_options: {headers: {"Accept" => "application/json"}}
)
@email = email
@base_uri = base_uri || BASE_URI
Expand Down

0 comments on commit 76fc78a

Please sign in to comment.