diff --git a/lib/client.js b/lib/client.js index c5ae4294..aa60f6f1 100644 --- a/lib/client.js +++ b/lib/client.js @@ -284,7 +284,7 @@ Client.prototype.copyTo = function (text) { Client.prototype.query = function(config, values, callback) { //can take in strings, config object or query object - var query = (config instanceof Query) ? config : + var query = (typeof config.submit == 'function') ? config : new Query(config, values, callback); if(this.binary && !query.binary) { query.binary = true;