CONTRIB-4394 fix header on index.php
replacing deprecated API call