From 29e09c1c16ccf928f13d6600155e7ec15a6c0d9a Mon Sep 17 00:00:00 2001 From: Matt Ranney Date: Tue, 22 Feb 2011 21:10:50 -1000 Subject: [PATCH] Fix bug in ready check with `return_buffers` set to `true`. Thanks to Dean Mao and Austin Chau. --- changelog.md | 6 ++++++ index.js | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index b9d0ff6313..671e046630 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,12 @@ Changelog ========= +## v0.5.6 - February 22, 2011 + +Fix bug in ready check with `return_buffers` set to `true`. + +Thanks to Dean Mao and Austin Chau. + ## v0.5.5 - February 16, 2011 Add probe for server readiness. diff --git a/index.js b/index.js index f9358fe48d..4df8bebfa9 100644 --- a/index.js +++ b/index.js @@ -179,8 +179,8 @@ RedisClient.prototype.ready_check = function () { return; } - var lines = res.split("\r\n"), obj = {}, retry_time; - + var lines = res.toString().split("\r\n"), obj = {}, retry_time; + lines.forEach(function (line) { var parts = line.split(':'); if (parts[1]) { diff --git a/package.json b/package.json index 1849030bca..03db43b946 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name" : "redis", - "version" : "0.5.5", + "version" : "0.5.6", "description" : "Redis client library", "author": "Matt Ranney ", "contributors": [