Ensure content type gets set when updating headers