Skip to content

Commit

Permalink
... and don't remove dontDoubleEncode in prepareOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellmorten committed Jul 12, 2023
1 parent b1eb5ca commit 526bedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test('should prepare empty options', (t) => {
soapActionNamespace: undefined,
hideSoapEnvelope: true,
hideXmlDirective: false,
dontDoubleEncode: false,
}

const ret = adapter.prepareOptions(options, 'api')
Expand All @@ -89,6 +90,7 @@ test('should only keep known options', (t) => {
soapActionNamespace: 'http://something-else.test/why',
hideSoapEnvelope: false,
hideXmlDirective: true,
dontDoubleEncode: true,
}
const expected = {
includeHeaders: false,
Expand All @@ -99,6 +101,7 @@ test('should only keep known options', (t) => {
soapActionNamespace: 'http://something-else.test/why',
hideSoapEnvelope: false,
hideXmlDirective: true,
dontDoubleEncode: true,
}

const ret = adapter.prepareOptions(options, 'api')
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const adapter: Adapter = {
soapActionNamespace,
hideSoapEnvelope = true,
hideXmlDirective = false,
dontDoubleEncode = false,
}: Options,
_serviceId
) {
Expand All @@ -41,6 +42,7 @@ const adapter: Adapter = {
soapActionNamespace,
hideSoapEnvelope,
hideXmlDirective,
dontDoubleEncode,
}
},
normalize,
Expand Down

0 comments on commit 526bedf

Please sign in to comment.