Skip to content

Commit

Permalink
Merge branch 'master' into features/tlsAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadhahami authored May 13, 2023
2 parents 7eb0a00 + 61273fb commit daac7b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = (config = {}) => {
const options = { ...config.requestOptions, ...requestOptions };
options.path = `/${path}`;
options.json = data;
options.method = 'PUT';
options.method = 'POST';
return client.request(options);
};

Expand Down
4 changes: 2 additions & 2 deletions test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe('node-vault', () => {
value: 'world',
};
const params = {
method: 'PUT',
method: 'POST',
uri: getURI(path),
};
vault.write(path, data)
Expand All @@ -208,7 +208,7 @@ describe('node-vault', () => {
value: 'world',
};
const params = {
method: 'PUT',
method: 'POST',
uri: getURI(path),
};
vault.write(path, data)
Expand Down

0 comments on commit daac7b1

Please sign in to comment.