Bugfix: Accept 201 Created responses and follow the 'location' header.
Support the 204 No Content response code as well.
Merge pull request #4 from diranged/fix_update_method

Fix update method