internet_available check not working for https

internet_available check not working for https urls.