set content type of iframe source before anything is written to the output stream