1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

reply_to_object function is broken for binary keys

There is currently no way to opt out of the way hgetall works with the
node_redis library and if any of the keys have binary, they are
incorrectly converted to the charactor 0xFEFF instead. This makes it
impossible to fully use HGETALL.
This commit is contained in:
Nick Apperson
2014-05-07 14:14:11 -05:00
parent 4672479b91
commit b1d8ff9ae8

View File

@@ -590,7 +590,7 @@ function reply_to_object(reply) {
}
for (j = 0, jl = reply.length; j < jl; j += 2) {
key = reply[j].toString();
key = reply[j].toString('binary');
val = reply[j + 1];
obj[key] = val;
}