Skip to content

Commit

Permalink
Merge pull request #2 from julien-f/patch-1
Browse files Browse the repository at this point in the history
fix: boolean is true if content is the string '1'
  • Loading branch information
leoz authored Apr 30, 2024
2 parents 402b4b6 + 0a661a8 commit b6a23d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/xmlrpc-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ XmlRpcParser.prototype.getHandler = function getHandler() {
// Parse a boolean into the JS equivalent.
case 'boolean':
instance.isImplicitString = false;
instance.valueStack.push(cdata === 'true' || cdata === 1);
instance.valueStack.push(cdata === 'true' || cdata === '1');
break;
// Parse a date from its ISO 8601 representation.
case 'dateTime.iso8601':
Expand Down

0 comments on commit b6a23d0

Please sign in to comment.