Skip to content

Commit

Permalink
Merge pull request #5 from EdoB/fixRequestHeadersDeletion
Browse files Browse the repository at this point in the history
Provided headers are deleted before sending the request to Microsoft Graph (OAuth2)
  • Loading branch information
gregorwolf committed Jan 3, 2022
2 parents 6a9b839 + db3e9eb commit 7854d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/destination.js
Expand Up @@ -32,7 +32,7 @@ function getAuthorizationHeader(_config, cfDestinationInfo) {
return new Promise((resolve, reject) => {
var error;
var config = Object.assign({}, _config);
config.headers = {}
config.headers = config.headers || {};
switch (cfDestinationInfo.Authentication) {
case "NoAuthentication":
resolve(config)
Expand Down

0 comments on commit 7854d52

Please sign in to comment.