diff --git a/lib/kestrelClient.js b/lib/kestrelClient.js index 5445def..579e5f5 100644 --- a/lib/kestrelClient.js +++ b/lib/kestrelClient.js @@ -195,7 +195,7 @@ kestrel.prototype.set = function( queue, value, lifetime ){ } var command = "SET " + queue + " 0 " + lifetime + " "; - command += value.length + "\r\n" + value + "\r\n"; + command += Buffer.byteLength(value, 'utf8') + "\r\n" + value + "\r\n"; var connection = this._getConnection(); if( connection != null ){ diff --git a/package.json b/package.json index 1841f6b..dd7b4f3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ , "keywords": ["kestrel", "client", "messaging", "queue"] , "author": "brett_langdon (http://brett.is)" , "contributors": [ - { "name": "brett_langdon", "email": "brett@blangdon.com" } + { "name": "brett_langdon", "email": "brett@blangdon.com" }, + { "name": "pablo_casado", "email": "p.casado.arias@gmail.com" } ] , "repository":{ "type": "git"