Permalink
Browse files

Fix bug in ready check with `return_buffers` set to `true`.

Thanks to Dean Mao and Austin Chau.
  • Loading branch information...
1 parent 99ae085 commit 29e09c1c16ccf928f13d6600155e7ec15a6c0d9a @mranney mranney committed Feb 23, 2011
Showing with 9 additions and 3 deletions.
  1. +6 −0 changelog.md
  2. +2 −2 index.js
  3. +1 −1 package.json
View
@@ -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.
View
@@ -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]) {
View
@@ -1,5 +1,5 @@
{ "name" : "redis",
- "version" : "0.5.5",
+ "version" : "0.5.6",
"description" : "Redis client library",
"author": "Matt Ranney <mjr@ranney.com>",
"contributors": [

0 comments on commit 29e09c1

Please sign in to comment.