diff --git a/lib/Client.js b/lib/Client.js index 48d97c0..335fbd2 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -215,9 +215,9 @@ module.exports = class Client { .data(r) .persist(); - rock.post( - this.url, - { + rock({ + method: 'POST', + url: this.url, body: r, headers: { 'content-type': 'text/xml;charset=UTF-8' }, }, diff --git a/package.json b/package.json index cfd2473..5617d2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ebics-client", - "version": "4.0.0", + "version": "4.1.0", "description": "Node.js ISO 20022 Compliant EBICS Client", "main": "index.js", "files": [ @@ -57,7 +57,7 @@ "url": "https://github.com/Herrie82" } ], - "license": "GPL-3.0-only", + "license": "MIT", "dependencies": { "@xmldom/xmldom": "^0.8.10", "handlebars": "^4.7.8",