Browse files

be permissive to clients inserting spaces at the end of a get

  • Loading branch information...
1 parent 47178d1 commit 479b5cec160be213dc4e1a26757472743ad0be2c @erikfrey erikfrey committed Sep 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/net/request.cpp
View
3 src/net/request.cpp
@@ -49,7 +49,8 @@ request_grammar::request_grammar()
>> -lit('s') // "gets" is okay too
>> ' '
>> key_name [phoenix::ref(req.queue) = qi::_1]
- >> *get_option;
+ >> *get_option
+ >> *lit(' '); // be permissive to clients inserting spaces
start = (stats | version | flush | flush_all | set | get) >> qi::eol;
}

0 comments on commit 479b5ce

Please sign in to comment.