LockerProject / Locker

Locker - the "me" platform
http://lockerproject.org/
BSD 3-Clause "New" or "Revised" License
1.07k stars 123 forks source link

push api should enforce valid content-type headers #855

Open smurthas opened 12 years ago

smurthas commented 12 years ago

Currently, you can push in data as form encoded and it will return a 200, but all numbers in the object will have been converted to strings, meaning when you retrieve it, the object will have changed. If anything other application/json is passed, it should return a 400.