From ba997d312bf449a694df5f9acbca25a77558271d Mon Sep 17 00:00:00 2001 From: nanov Date: Tue, 30 Apr 2024 03:05:31 +0300 Subject: [PATCH] fix: correct rock post signature --- lib/Client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' }, },