Skip to content

Commit

Permalink
- change: add gzip as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
moszeed committed Jan 16, 2025
1 parent c86ea11 commit ac2e5a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# easysoap changelog

## 2.3.0
* change: add gzip as parameter

## 2.2.0
* change: output gets more flatten

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Michael Röber",
"email": "[email protected]"
},
"version": "2.2.0",
"version": "2.3.0",
"main": "./src/index.js",
"dependencies": {
"request": "^2.69.0",
Expand Down
5 changes: 5 additions & 0 deletions src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@
SoapRequest.prototype.call = async function (params = {}) {
const self = this;

if (!params.gzip) {
params.gzip = false;
}

// add custom headers
if (params.headers) {
if (Array.isArray(params.headers)) {
Expand All @@ -239,6 +243,7 @@
body : requestXml,
headers : this._headers,
rejectUnauthorized: this._params.rejectUnauthorized,
gzip : params.gzip,
method : 'POST'
});

Expand Down

0 comments on commit ac2e5a8

Please sign in to comment.