Skip to content

Commit

Permalink
fix: switching atob for btoa (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
chisNaN authored Jul 7, 2020
1 parent 9790b73 commit 0eb26fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function makeFetch(
) => {
if (opts.basicAuth) {
const { username, password } = opts.basicAuth;
const authorization = `Basic ${atob(username + ":" + password)}`;
const authorization = `Basic ${btoa(username + ":" + password)}`;
headers.set("authorization", authorization);
}
return fetch(`${endpoint}` + path, {
Expand Down

0 comments on commit 0eb26fc

Please sign in to comment.