Skip to content

Commit

Permalink
Fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gridanjbf committed Apr 17, 2024
1 parent 304a2e6 commit b6feb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sharepoint/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def computed_web_api_url(site)

def ethon_easy_json_requester
easy = ethon_easy_requester
easy.headers = { 'accept'=> 'application/json;odata=verbose'}
easy.headers = easy.headers.merge({ 'accept'=> 'application/json;odata=verbose'})
easy
end

Expand All @@ -546,7 +546,7 @@ def ethon_easy_options
def ethon_easy_requester
authenticating do
easy = Ethon::Easy.new({ httpauth: :ntlm, followlocation: 1, maxredirs: 5 }.merge(ethon_easy_options))
easy.authentication = bearer_auth
easy.headers = {'authentication' => bearer_auth }
easy
end
end
Expand Down

0 comments on commit b6feb87

Please sign in to comment.