shinypb / openkeyval

OpenKeyval.org is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.
http://openkeyval.org
Other
136 stars 35 forks source link

Values consisting of only '0' get deleted #10

Closed osbolab closed 13 years ago

osbolab commented 13 years ago

$ curl -d "data=3" api.openkeyval.org/testing
$ curl api.openkeyval.org/testing
3

$ curl -d "data=0" api.openkeyval.org/testing
$ curl api.openkeyval.org/testing
{"error":"not_found","documentation_url":"http:\/\/openkeyval.org\/"}

dustball commented 13 years ago

Fixed with 65e22e88c5499a97cfbbcf913b7fa161b0473a7a

(also made a unit test to make sure it never breaks again)

Will deploy to production in 24 hours.