Fix issues related to PUT and POST.