Skip to content

Commit

Permalink
fix: cast statusMessage to string and avoid trim error (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxxo authored Apr 6, 2022
1 parent 885610e commit ba2b371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/soap/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const createStandardRequestBody =
? ok<IXmlContainer, ITransportPayoad>({ xmlString: response.body, xmlDocument })
: fail<IXmlContainer, ITransportPayoad>({
...response,
statusMessage: (reason.valueOrUndefined() || subcode.valueOr(response.statusMessage)).trim()
statusMessage: (reason.valueOrUndefined() || subcode.valueOr(JSON.stringify(response.statusMessage))).trim()
})
}))

Expand Down

0 comments on commit ba2b371

Please sign in to comment.