Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Correct handling of all real-world Redis Values in multi-bulk responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Turner committed Apr 12, 2011
1 parent 349d35a commit 2554caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Database/Redis/Internal.hs
Expand Up @@ -12,6 +12,7 @@ import Data.Binary.Put (runPut, Put, putLazyByteString)
import Data.Attoparsec (Parser, parse, Result(..), takeTill, string)
import qualified Data.Attoparsec as Atto


-- ---------------------------------------------------------------------------
-- Command
--
Expand Down Expand Up @@ -96,7 +97,7 @@ bulkReply = do
multiBulkReply :: Parser RedisValue
multiBulkReply = do
numParams <- readIntLine
args <- mapM (\_-> string "$" >> bulkReply) [1..numParams]
args <- mapM (\_ -> parseReply) [1..numParams]
return $ RedisMulti args

integerReply :: Parser RedisValue
Expand Down

0 comments on commit 2554caa

Please sign in to comment.