diff --git a/lib/sharepoint/client.rb b/lib/sharepoint/client.rb index 0527986..b472b23 100644 --- a/lib/sharepoint/client.rb +++ b/lib/sharepoint/client.rb @@ -535,7 +535,7 @@ def computed_web_api_url(site) def ethon_easy_json_requester easy = ethon_easy_requester - easy.headers = easy.headers.merge({ 'accept'=> 'application/json;odata=verbose'}) + easy.headers = ({ 'accept'=> 'application/json;odata=verbose'}.merge({'authentication' => bearer_auth})) easy end