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' }, },