fixes the patron error when you don't pass any :data with PUT or POST