Skip to content

Commit

Permalink
fix(nodejs): correctly set ajax request's body for login
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjes committed Nov 14, 2017
1 parent 03beba5 commit 421c691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports.login = pouchdbUtils.toPromise(function (username, password, opts, callb
method : 'POST',
url : utils.getSessionUrl(db),
headers : {'Content-Type': 'application/json'},
body : JSON.stringify({name: username, password: password})
body : {name: username, password: password}
}, opts.ajax || {});
pouchdbAjax(ajaxOpts, wrapError(callback));
});
Expand Down

0 comments on commit 421c691

Please sign in to comment.