Skip to content

Commit 2c3f7b1

Browse files
committed
fix(nodejs): correctly set ajax request's body for login
Fixes pouchdb-community#127, pouchdb-community#130 and pouchdb-community#141
1 parent d6faaed commit 2c3f7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ plugin.login = toPromise(function (username, password, opts, callback) {
114114
method : 'POST',
115115
url : getSessionUrl(db),
116116
headers : {'Content-Type': 'application/json'},
117-
body : JSON.stringify({name: username, password: password})
117+
body : {name: username, password: password}
118118
}, opts.ajax || {});
119119
ajaxCore(ajaxOpts, wrapError(callback));
120120
});

0 commit comments

Comments
 (0)