take content-type into account when decoding PUT or DELETE requests