Added default check for text/html