[core] flash check: explicitly set html/text if url has .html extension