Skip to content

Commit

Permalink
Fix Authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
pofallon committed Aug 30, 2018
1 parent c24c6c3 commit 4e6f947
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/alks.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var alks = (function () {
'Content-Type': 'application/json'
};
if (opts.accessToken) {
headers['Authorize'] = "Bearer " + (opts.accessToken);
headers['Authorization'] = "Bearer " + (opts.accessToken);
delete opts.accessToken;
}
if (opts.userid || opts.password) {
Expand Down
2 changes: 1 addition & 1 deletion dist/alks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/alks.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class alks {
};

if (opts.accessToken) {
headers['Authorize'] = `Bearer ${opts.accessToken}`;
headers['Authorization'] = `Bearer ${opts.accessToken}`;
delete opts.accessToken;
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/alks.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class alks {
}

if (opts.accessToken) {
headers['Authorize'] = `Bearer ${opts.accessToken}`
headers['Authorization'] = `Bearer ${opts.accessToken}`
delete opts.accessToken
}

Expand Down

0 comments on commit 4e6f947

Please sign in to comment.