def good_response(response):
    """
    Returns True if the response is HTML.
    """
    resp_type = response.headers['Content-Type'].lower()
    return response.status_code == 200 and \
        resp_type is not None and resp_type.find('html') > -1