Fixed silly bug in POST and PUT requests.