From 76fc78a1728815550a2899fdab927ced93cf66f4 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Mon, 11 Jul 2022 01:12:00 -0400 Subject: [PATCH] Default the headers to Accept JSON Fixes #594 Closes #596 --- lib/tesla_api/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tesla_api/client.rb b/lib/tesla_api/client.rb index c29e1be8..4fb84b09 100644 --- a/lib/tesla_api/client.rb +++ b/lib/tesla_api/client.rb @@ -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