diff --git a/lib/utils.js b/lib/utils.js index eccf5069..56a45cb0 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -33,6 +33,9 @@ function arrayString(val) { else if(Array.isArray(val[i])) { result = result + arrayString(val[i]); } + else if(val[i] instanceof Buffer) { + result += '\\\\x' + val[i].toString('hex'); + } else { result += escapeElement(prepareValue(val[i]));