Otto,
Unfrotunately that’s not working. I tried just placing the header lines without the if statements in the index.php of my template with the end();. I just end up with a blank page. And I’m assuming that it does define the content-type header at some point, as there are functions specifically for the purpose.
Any other ideas?