diff --git a/src/scripting.c b/src/scripting.c index 06862e84..18a0a81e 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -737,8 +737,8 @@ void scriptCommand(redisClient *c) { return; } } + addReplyBulkCBuffer(c,funcname+2,40); sdsfree(sha); - addReply(c,shared.ok); } else { addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args."); } diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 51fea5f4..647794eb 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -187,7 +187,7 @@ start_server {tags {"scripting"}} { list \ [r script load "return 'loaded'"] \ [r evalsha b534286061d4b9e4026607613b95c06c06015ae8 0] - } {OK loaded} + } {b534286061d4b9e4026607613b95c06c06015ae8 loaded} } start_server {tags {"scripting repl"}} {