update to send html if header content-type == text/html
update versin