Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 856eefe

Browse files
smikesothiym23
authored andcommitted
don't send body on GET requests
1 parent 0d59a9b commit 856eefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adduser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function adduser (uri, params, cb) {
7676
client.log.verbose('adduser', 'update existing user')
7777
return client.request(
7878
uri + '?write=true',
79-
{ body: userobj, auth: auth },
79+
{ auth: auth },
8080
function (er, data, json, response) {
8181
if (er || data.error) {
8282
return cb(er, data, json, response)

0 commit comments

Comments
 (0)