nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 305 forks source link

PUT with one argument fails #67

Open kaytwo opened 11 years ago

kaytwo commented 11 years ago

"PUT with the last argument in the body" doesn't match what the code does - it short circuits out based on slash count instead of command count on https://github.com/nicolasff/webdis/blob/master/cmd.c#L231

Pretty sure this could be fixed via changing that line to

    if(cmd->count==1) {

Let me know if you'd like a full pull request.