diff --git a/src/lib/xmlrpc-parser.js b/src/lib/xmlrpc-parser.js index 0adeda5..0f928e3 100644 --- a/src/lib/xmlrpc-parser.js +++ b/src/lib/xmlrpc-parser.js @@ -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':