Closed bassdread closed 10 years ago
I want to store the amount of available light is currently zero, POSTing to /data a 0 value doesn't work.
$ http POST localhost:3000/data/2e739280-bfec-11e3-a746-6f2838d02e29 token=1adagvblu9639pb9ma8mo7ob1vw019k9 light=0 HTTP/1.1 200 OK Access-Control-Allow-Origin: * Connection: keep-alive Content-Length: 159 Content-Type: application/json Date: Fri, 11 Apr 2014 21:36:52 GMT { "_id": "5348607459025ad40e000104", "eventCode": 700, "ipAddress": "127.0.0.1", "timestamp": "2014-04-11T21:36:52.898Z", "uuid": "2e739280-bfec-11e3-a746-6f2838d02e29" }
compared to supplying a value:
$ http POST localhost:3000/data/2e739280-bfec-11e3-a746-6f2838d02e29 token=1adagvblu9639pb9ma8mo7ob1vw019k9 light=1 HTTP/1.1 200 OK Access-Control-Allow-Origin: * Connection: keep-alive Content-Length: 171 Content-Type: application/json Date: Fri, 11 Apr 2014 21:38:13 GMT { "_id": "534860c559025ad40e000110", "eventCode": 700, "ipAddress": "127.0.0.1", "light": "1", "timestamp": "2014-04-11T21:38:13.066Z", "uuid": "2e739280-bfec-11e3-a746-6f2838d02e29" }
Fixed. Please pull our latest update.
I want to store the amount of available light is currently zero, POSTing to /data a 0 value doesn't work.
compared to supplying a value: