Merge pull request #40 from chx/nil

Send 404 for nil in custom format
master
Nicolas Favre-Felix 13 years ago
commit df57554fca

@ -27,7 +27,7 @@ custom_type_reply(redisAsyncContext *c, void *r, void *privdata) {
switch(reply->type) {
case REDIS_REPLY_NIL: /* or nil values */
format_send_reply(cmd, "", 0, cmd->mime);
format_send_error(cmd, 404, "Not found");
return;
case REDIS_REPLY_STRING:

Loading…
Cancel
Save