Bug fix in client.post: change PUT to POST