support PUT and POST requests with no body