Accept both application/json and multipart/form-urlencoded requests