From 2cfd215cd5343114f50653d1abf4414c0a9779f0 Mon Sep 17 00:00:00 2001 From: Brett Langdon Date: Tue, 23 Jul 2013 23:09:31 -0400 Subject: [PATCH] more better get responses --- src/handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 067803c..9ab176f 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -77,7 +77,7 @@ void handle_get(KCLIST* tokens, FILE* client){ if(result_buffer){ if(strcmp(result_buffer, "0") == 0){ ++misses; - sprintf(out, "VALUE %s 0 0\r\n\r\nEND\r\n", key); + sprintf(out, "END\r\n"); } else{ char* value = result_buffer + 11; char expiration[16]; @@ -99,7 +99,7 @@ void handle_get(KCLIST* tokens, FILE* client){ kcfree(result_buffer); } else{ ++misses; - sprintf(out, "VALUE %s 0 0\r\n\r\nEND\r\n", key); + sprintf(out, "END\r\n"); char value[16]; int now = (int)time(NULL); sprintf(value, "%10d:0", now + 60);