Skip to content

Commit

Permalink
Check for usage of autentication header
Browse files Browse the repository at this point in the history
  • Loading branch information
gridanjbf committed Apr 22, 2024
1 parent 07e7f45 commit da00d58
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 @@ -326,11 +326,11 @@ def create_folder(name, path, site_path = nil)
path = path[1..-1] if path[0].eql?('/')
url = uri_escape "#{url}GetFolderByServerRelativeUrl('#{path}')/Folders"
easy = ethon_easy_json_requester
easy.headers = {
easy.headers = with_bearer_authentication_header({
'accept' => 'application/json;odata=verbose',
'content-type' => 'application/json;odata=verbose',
'X-RequestDigest' => xrequest_digest(site_path)
}
})
payload = {
'__metadata' => {
'type' => 'SP.Folder'
Expand Down

0 comments on commit da00d58

Please sign in to comment.