Allow content type to vary on post and put methods