handle content type equal text/html