Skip to content

Commit 1889375

Browse files
Zian502Zian502
andauthored
fix: Modify logincouch target (#27)
Co-authored-by: Zian502 <[email protected]>
1 parent ede705a commit 1889375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const loginCouch = (username, password, opts = {}) => {
150150
}
151151
log.verbose('login', 'before first PUT', logObj)
152152

153-
const target = '-/user/org.couchdb.user:' + encodeURIComponent(username)
153+
const target = '/-/user/org.couchdb.user:' + encodeURIComponent(username)
154154
return fetch.json(target, {
155155
...opts,
156156
method: 'PUT',

0 commit comments

Comments
 (0)